MCPcopy Create free account
hub / github.com/checkmake/checkmake / TestCheckmake_VersionOutput

Function TestCheckmake_VersionOutput

cmd/checkmake/main_test.go:51–60  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

49}
50
51func TestCheckmake_VersionOutput(t *testing.T) {
52 out := captureOutput(func() {
53 cmd := newRootCmd()
54 cmd.SetArgs([]string{"--version"})
55 err := cmd.Execute()
56 require.NoError(t, err, "command with --version should not fail")
57 })
58
59 assert.Regexp(t, `^checkmake (v\d.*)? built`, out)
60}
61
62func TestCheckmake_RunWithSimpleMakefile(t *testing.T) {
63 t.Parallel()

Callers

nothing calls this directly

Calls 2

captureOutputFunction · 0.85
newRootCmdFunction · 0.85

Tested by

no test coverage detected