MCPcopy Create free account
hub / github.com/cli/cli / mockIssueUpdate

Function mockIssueUpdate

pkg/cmd/issue/edit/edit_test.go:1994–2001  ·  view source on GitHub ↗
(t *testing.T, reg *httpmock.Registry)

Source from the content-addressed store, hash-verified

1992}
1993
1994func mockIssueUpdate(t *testing.T, reg *httpmock.Registry) {
1995 reg.Register(
1996 httpmock.GraphQL(`mutation IssueUpdate\b`),
1997 httpmock.GraphQLMutation(`
1998 { "data": { "updateIssue": { "__typename": "" } } }`,
1999 func(inputs map[string]any) {}),
2000 )
2001}
2002
2003// mockIssueUpdateWithBody stubs the issue update and asserts the body it
2004// carries.

Callers 1

Test_editRunFunction · 0.85

Calls 3

GraphQLFunction · 0.92
GraphQLMutationFunction · 0.92
RegisterMethod · 0.45

Tested by

no test coverage detected