(t *testing.T)
| 49 | } |
| 50 | |
| 51 | func 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 | |
| 62 | func TestCheckmake_RunWithSimpleMakefile(t *testing.T) { |
| 63 | t.Parallel() |
nothing calls this directly
no test coverage detected