MCPcopy Create free account
hub / github.com/git-bug/git-bug / TestBugRm

Function TestBugRm

commands/bug/bug_rm_test.go:11–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestBugRm(t *testing.T) {
12 env, bugID := testenv.NewTestEnvAndBug(t)
13
14 exp := "bug " + bugID.Human() + " removed\n"
15
16 require.NoError(t, runBugRm(env, []string{bugID.Human()}))
17 require.Equal(t, exp, env.Out.String())
18 env.Out.Reset()
19}

Callers

nothing calls this directly

Calls 5

NewTestEnvAndBugFunction · 0.92
runBugRmFunction · 0.85
StringMethod · 0.65
ResetMethod · 0.65
HumanMethod · 0.45

Tested by

no test coverage detected