MCPcopy Index your code
hub / github.com/coder/coder / buildBinary

Function buildBinary

agent/agentexec/main_linux_test.go:29–34  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

27}
28
29func buildBinary(dir string) string {
30 path := filepath.Join(dir, "agent-test")
31 out, err := exec.Command("go", "build", "-o", path, "./cmdtest").CombinedOutput()
32 mustf(err, "build binary: %s", out)
33 return path
34}
35
36func mustf(err error, msg string, args ...any) {
37 if err != nil {

Callers 2

TestMainFunction · 0.70
TestCLIFunction · 0.70

Calls 2

mustfFunction · 0.85
CommandMethod · 0.80

Tested by

no test coverage detected