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

Function TestJSONFields

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected