MCPcopy Index your code
hub / github.com/jetify-com/devbox / Main

Function Main

testscripts/testrunner/testrunner.go:19–30  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

17)
18
19func Main(m *testing.M) {
20 commands := map[string]func(){
21 "devbox": func() {
22 // Call the devbox CLI directly:
23 os.Exit(boxcli.Execute(context.Background(), os.Args[1:]))
24 },
25 "print": func() { // Not 'echo' because we don't expand variables
26 fmt.Println(strings.Join(os.Args[1:], " "))
27 },
28 }
29 testscript.Main(m, commands)
30}
31
32func RunTestscripts(t *testing.T, testscriptsDir string) {
33 globPattern := filepath.Join(testscriptsDir, "**/*.test.txt")

Callers 1

TestMainFunction · 0.92

Calls 1

ExecuteFunction · 0.92

Tested by 1

TestMainFunction · 0.74