nixbuild/sample_getchoo_atlas_test.go
Yonah 69c6128ff5
exec: replace global state with interface
This is cleaner, and finally enables writing tests for the nix invoking functions.
2025-07-18 13:40:46 +09:00

25 lines
617 B
Go

package nixbuild_test
import _ "embed"
// github:getchoo/borealis#atlas
var (
//go:embed testdata/getchoo_atlas
getchooAtlasOut string
getchooAtlasInstantiated = sampleSplitPaths(getchooAtlasInstantiatedRaw)
//go:embed testdata/instantiated/getchoo_atlas
getchooAtlasInstantiatedRaw string
//go:embed testdata/derivation/show_getchoo_atlas.json
getchooAtlasShow []byte
getchooAtlasCollective = sampleSplitPaths(getchooAtlasCollectiveRaw)
//go:embed testdata/derivation/collect_getchoo_atlas
getchooAtlasCollectiveRaw string
//go:embed testdata/format/stdin_getchoo_atlas
getchooAtlasStdin string
)