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

Function TestBugNew

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

Source from the content-addressed store, hash-verified

9)
10
11func TestBugNew(t *testing.T) {
12 env, _ := testenv.NewTestEnvAndUser(t)
13
14 err := runBugNew(env, bugNewOptions{
15 nonInteractive: true,
16 message: "message",
17 title: "title",
18 })
19 require.NoError(t, err)
20 require.Regexp(t, "^[0-9A-Fa-f]{7} created\n$", env.Out.String())
21}

Callers

nothing calls this directly

Calls 3

NewTestEnvAndUserFunction · 0.92
runBugNewFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected