nixbuild/sample_getchoo_glados_test.go
Ophestra c1fb6783f7
exec: replace global state with interface
This is cleaner, and finally enables writing tests for the nix invoking functions.
2025-07-19 00:21:59 +09:00

25 lines
632 B
Go

package nixbuild_test
import _ "embed"
// github:getchoo/borealis#glados
var (
//go:embed testdata/getchoo_glados
getchooGladosOut string
getchooGladosInstantiated = sampleSplitPaths(getchooGladosInstantiatedRaw)
//go:embed testdata/instantiated/getchoo_glados
getchooGladosInstantiatedRaw string
//go:embed testdata/derivation/show_getchoo_glados.json
getchooGladosShow []byte
getchooGladosCollective = sampleSplitPaths(getchooGladosCollectiveRaw)
//go:embed testdata/derivation/collect_getchoo_glados
getchooGladosCollectiveRaw string
//go:embed testdata/format/stdin_getchoo_glados
getchooGladosStdin string
)