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

Function TestJSONFields

pkg/cmd/pr/view/view_test.go:31–80  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

29)
30
31func TestJSONFields(t *testing.T) {
32 jsonfieldstest.ExpectCommandToSupportJSONFields(t, NewCmdView, []string{
33 "additions",
34 "assignees",
35 "author",
36 "autoMergeRequest",
37 "baseRefName",
38 "baseRefOid",
39 "body",
40 "changedFiles",
41 "closed",
42 "closedAt",
43 "closingIssuesReferences",
44 "comments",
45 "commits",
46 "createdAt",
47 "deletions",
48 "files",
49 "fullDatabaseId",
50 "headRefName",
51 "headRefOid",
52 "headRepository",
53 "headRepositoryOwner",
54 "id",
55 "isCrossRepository",
56 "isDraft",
57 "labels",
58 "latestReviews",
59 "maintainerCanModify",
60 "mergeCommit",
61 "mergeStateStatus",
62 "mergeable",
63 "mergedAt",
64 "mergedBy",
65 "milestone",
66 "number",
67 "potentialMergeCommit",
68 "projectCards",
69 "projectItems",
70 "reactionGroups",
71 "reviewDecision",
72 "reviewRequests",
73 "reviews",
74 "state",
75 "statusCheckRollup",
76 "title",
77 "updatedAt",
78 "url",
79 })
80}
81
82func Test_NewCmdView(t *testing.T) {
83 tests := []struct {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected