mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-15 22:48:16 +08:00
fix bug/web template init
This commit is contained in:
21
plugin/webinfo/template_test.go
Normal file
21
plugin/webinfo/template_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package webinfo
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestTemplateStore_Create(t *testing.T) {
|
||||
s := newTemplateStore(WebTemplateStorePath)
|
||||
s.Get("A")
|
||||
s.Get("B")
|
||||
s.Modify("A", "123123")
|
||||
s.Save(WebTemplateStorePath)
|
||||
}
|
||||
|
||||
func TestTemplateStore_Load(t *testing.T) {
|
||||
s := newTemplateStore(WebTemplateStorePath)
|
||||
for name, tmpl := range s.Templates {
|
||||
fmt.Println(name, tmpl.Template)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user