2024-04-19 05:03:15 +00:00
|
|
|
package sideload
|
|
|
|
|
|
|
|
import (
|
2024-04-19 05:19:55 +00:00
|
|
|
"io/fs"
|
2024-04-19 05:03:15 +00:00
|
|
|
"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) {
|
2024-04-19 05:19:55 +00:00
|
|
|
subFs, err := fs.Sub(embedFs, "testdata/source")
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
|
2024-04-19 05:03:15 +00:00
|
|
|
harness.Validate(
|
|
|
|
self,
|
|
|
|
func(gs *goldsmith.Goldsmith) {
|
2024-04-19 05:19:55 +00:00
|
|
|
gs.Chain(New().FileSystems(subFs))
|
2024-04-19 05:03:15 +00:00
|
|
|
},
|
|
|
|
)
|
|
|
|
}
|