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

Function NewTestEnvAndBug

commands/bug/testenv/testenv.go:53–62  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

51)
52
53func NewTestEnvAndBug(t *testing.T) (*execenv.Env, entity.Id) {
54 t.Helper()
55
56 testEnv, _ := NewTestEnvAndUser(t)
57
58 b, _, err := testEnv.Backend.Bugs().New(testBugTitle, testBugMessage)
59 require.NoError(t, err)
60
61 return testEnv, b.Id()
62}
63
64const (
65 testCommentMessage = "this is a bug comment"

Callers 4

TestBugCommentFunction · 0.92
TestBugRmFunction · 0.92
TestBug_FormatFunction · 0.92

Calls 5

NewTestEnvAndUserFunction · 0.85
HelperMethod · 0.80
BugsMethod · 0.80
IdMethod · 0.65
NewMethod · 0.45

Tested by 3

TestBugCommentFunction · 0.74
TestBugRmFunction · 0.74
TestBug_FormatFunction · 0.74