MCPcopy
hub / github.com/dnote/dnote / TestMain

Function TestMain

pkg/cli/main_test.go:49–56  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

47}
48
49func TestMain(m *testing.M) {
50 if err := exec.Command("go", "build", "--tags", "fts5", "-o", binaryName).Run(); err != nil {
51 log.Print(errors.Wrap(err, "building a binary").Error())
52 os.Exit(1)
53 }
54
55 os.Exit(m.Run())
56}
57
58func TestInit(t *testing.T) {
59 testDir, opts := setupTestEnv(t)

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected