MCPcopy Create free account
hub / github.com/go-python/gopy / TestGovet

Function TestGovet

main_test.go:62–71  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

60}
61
62func TestGovet(t *testing.T) {
63 cmd := exec.Command("go", "vet", "./...")
64 buf := new(bytes.Buffer)
65 cmd.Stdout = buf
66 cmd.Stderr = buf
67 err := cmd.Run()
68 if err != nil {
69 t.Fatalf("error running %s:\n%s\n%v", "go vet", buf.String(), err)
70 }
71}
72
73func TestGofmt(t *testing.T) {
74 exe, err := exec.LookPath("goimports")

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected