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

Function mockProjectV2ItemUpdate

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

Source from the content-addressed store, hash-verified

2038}
2039
2040func mockProjectV2ItemUpdate(t *testing.T, reg *httpmock.Registry) {
2041 reg.Register(
2042 httpmock.GraphQL(`mutation UpdateProjectV2Items\b`),
2043 httpmock.GraphQLMutation(`
2044 { "data": { "add_000": { "item": { "id": "1" } }, "delete_001": { "item": { "id": "2" } } } }`,
2045 func(inputs map[string]any) {}),
2046 )
2047}
2048
2049// Test_editRun_crossHostRelationshipRefs verifies that every relationship
2050// flag rejects a cross-host issue URL with the same clear error. Lives as

Callers 1

Test_editRunFunction · 0.70

Calls 3

GraphQLFunction · 0.92
GraphQLMutationFunction · 0.92
RegisterMethod · 0.45

Tested by

no test coverage detected