MCPcopy Create free account
hub / github.com/NV404/gova / writeModule

Function writeModule

internal/devserver/builder_test.go:13–21  ·  view source on GitHub ↗
(t *testing.T, dir, mainBody string)

Source from the content-addressed store, hash-verified

11)
12
13func writeModule(t *testing.T, dir, mainBody string) {
14 t.Helper()
15 if err := os.WriteFile(filepath.Join(dir, "go.mod"), []byte("module m\n\ngo 1.26\n"), 0o644); err != nil {
16 t.Fatalf("go.mod: %v", err)
17 }
18 if err := os.WriteFile(filepath.Join(dir, "main.go"), []byte(mainBody), 0o644); err != nil {
19 t.Fatalf("main.go: %v", err)
20 }
21}
22
23func TestBuildSuccess(t *testing.T) {
24 dir := t.TempDir()

Callers 5

TestBuildSuccessFunction · 0.85
TestRunBuildsAndReloadsFunction · 0.85
buildHelperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected