MCPcopy
hub / github.com/cli/cli / minimalNodes

Function minimalNodes

pkg/cmd/discussion/client/client_test.go:61–67  ·  view source on GitHub ↗

minimalNodes returns count comma-separated minimal JSON discussion nodes.

(count int)

Source from the content-addressed store, hash-verified

59
60// minimalNodes returns count comma-separated minimal JSON discussion nodes.
61func minimalNodes(count int) string {
62 nodes := make([]string, count)
63 for i := range nodes {
64 nodes[i] = minimalNode(fmt.Sprintf("D%d", i+1), fmt.Sprintf("Discussion %d", i+1))
65 }
66 return strings.Join(nodes, ",")
67}
68
69// listResp builds a mock repository.discussions JSON response.
70func listResp(hasNext bool, endCursor string, total int, nodes string) string {

Callers 2

TestListFunction · 0.85
TestSearchFunction · 0.85

Calls 2

minimalNodeFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected