added tests

updated go version and packages
This commit is contained in:
2024-05-07 14:14:28 -04:00
parent 889ba3cb48
commit a834bc6384
7 changed files with 144 additions and 9 deletions

16
generator/plain_test.go Normal file
View File

@@ -0,0 +1,16 @@
package generator
import "testing"
func TestGenerator_GenerateUrl(t *testing.T) {
g, err := NewGenerator(Config{})
if err != nil {
t.Fatal(err)
}
url, _ := g.generatePlainUrl("local:///test.png")
if url != "plain/local:///test.png" {
t.Errorf("url is %s", url)
}
}