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

Function mockIssueUpdateLabels

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

Source from the content-addressed store, hash-verified

2023}
2024
2025func mockIssueUpdateLabels(t *testing.T, reg *httpmock.Registry) {
2026 reg.Register(
2027 httpmock.GraphQL(`mutation LabelAdd\b`),
2028 httpmock.GraphQLMutation(`
2029 { "data": { "addLabelsToLabelable": { "__typename": "" } } }`,
2030 func(inputs map[string]any) {}),
2031 )
2032 reg.Register(
2033 httpmock.GraphQL(`mutation LabelRemove\b`),
2034 httpmock.GraphQLMutation(`
2035 { "data": { "removeLabelsFromLabelable": { "__typename": "" } } }`,
2036 func(inputs map[string]any) {}),
2037 )
2038}
2039
2040func mockProjectV2ItemUpdate(t *testing.T, reg *httpmock.Registry) {
2041 reg.Register(

Callers 1

Test_editRunFunction · 0.85

Calls 3

GraphQLFunction · 0.92
GraphQLMutationFunction · 0.92
RegisterMethod · 0.45

Tested by

no test coverage detected