goldsmith/plugins/sideload/sideload_test.go

29 lines
408 B
Go
Raw Normal View History

2024-04-19 05:20:26 +00:00
package sideload
import (
"io/fs"
"testing"
"embed"
"git.foosoft.net/alex/goldsmith"
"git.foosoft.net/alex/goldsmith/harness"
)
//go:embed testdata/source
var embedFs embed.FS
func Test(self *testing.T) {
subFs, err := fs.Sub(embedFs, "testdata/source")
if err != nil {
panic(err)
}
harness.Validate(
self,
func(gs *goldsmith.Goldsmith) {
gs.Chain(New().FileSystems(subFs))
},
)
}