MCPcopy Index your code
hub / github.com/git-bug/git-bug / TestBugCommentEdit

Function TestBugCommentEdit

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

Source from the content-addressed store, hash-verified

9)
10
11func TestBugCommentEdit(t *testing.T) {
12 const golden = "testdata/comment/edit"
13
14 env, bugID, commentID := testenv.NewTestEnvAndBugWithComment(t)
15
16 opts := bugCommentEditOptions{
17 message: "this is an altered bug comment",
18 }
19 require.NoError(t, runBugCommentEdit(env, opts, []string{commentID.Human()}))
20
21 require.NoError(t, runBugComment(env, []string{bugID.Human()}))
22 requireCommentsEqual(t, golden, env)
23}

Callers

nothing calls this directly

Calls 5

runBugCommentEditFunction · 0.85
runBugCommentFunction · 0.85
requireCommentsEqualFunction · 0.85
HumanMethod · 0.45

Tested by

no test coverage detected