29 lines
408 B
Go
29 lines
408 B
Go
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))
|
|
},
|
|
)
|
|
}
|