MCPcopy
hub / github.com/cli/cli / repoMetaResp

Function repoMetaResp

pkg/cmd/discussion/client/client_test.go:2343–2353  ·  view source on GitHub ↗
(id string, discussionsEnabled bool)

Source from the content-addressed store, hash-verified

2341}
2342
2343func repoMetaResp(id string, discussionsEnabled bool) string {
2344 return fmt.Sprintf(`{
2345 "data": {
2346 "repository": {
2347 "id": %q,
2348 "databaseId": 982069338,
2349 "hasDiscussionsEnabled": %t
2350 }
2351 }
2352 }`, id, discussionsEnabled)
2353}
2354
2355func TestCreate(t *testing.T) {
2356 repo := ghrepo.New("OWNER", "REPO")

Callers 4

TestGetByNumberFunction · 0.85
TestGetWithCommentsFunction · 0.85
TestCreateFunction · 0.85
TestResolveCommentNodeIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected