MCPcopy Create free account
hub / github.com/blobcache/blobcache / BuildGoExec

Function BuildGoExec

src/internal/testutil/testutil.go:45–48  ·  view source on GitHub ↗
(t testing.TB, dst string, mainPkg string)

Source from the content-addressed store, hash-verified

43}
44
45func BuildGoExec(t testing.TB, dst string, mainPkg string) {
46 cmd := exec.Command("go", "build", "-o", dst, mainPkg)
47 require.NoError(t, cmd.Run())
48}

Callers 2

TestAPIFunction · 0.92
setupFunction · 0.92

Calls 1

RunMethod · 0.80

Tested by 2

TestAPIFunction · 0.74
setupFunction · 0.74