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

Function TestJSONFields

pkg/cmd/issue/view/view_test.go:28–58  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26)
27
28func TestJSONFields(t *testing.T) {
29 jsonfieldstest.ExpectCommandToSupportJSONFields(t, NewCmdView, []string{
30 "assignees",
31 "author",
32 "body",
33 "closed",
34 "comments",
35 "closedByPullRequestsReferences",
36 "createdAt",
37 "closedAt",
38 "id",
39 "labels",
40 "milestone",
41 "number",
42 "projectCards",
43 "projectItems",
44 "reactionGroups",
45 "state",
46 "title",
47 "updatedAt",
48 "url",
49 "isPinned",
50 "stateReason",
51 "issueType",
52 "parent",
53 "subIssues",
54 "subIssuesSummary",
55 "blockedBy",
56 "blocking",
57 })
58}
59
60func TestNewCmdView(t *testing.T) {
61 // Test shared parsing of issue number / URL.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected