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

Function TestJSONFields

pkg/cmd/repo/view/view_test.go:24–94  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22)
23
24func TestJSONFields(t *testing.T) {
25 jsonfieldstest.ExpectCommandToSupportJSONFields(t, NewCmdView, []string{
26 "archivedAt",
27 "assignableUsers",
28 "codeOfConduct",
29 "contactLinks",
30 "createdAt",
31 "defaultBranchRef",
32 "deleteBranchOnMerge",
33 "description",
34 "diskUsage",
35 "forkCount",
36 "fundingLinks",
37 "hasDiscussionsEnabled",
38 "hasIssuesEnabled",
39 "hasProjectsEnabled",
40 "hasWikiEnabled",
41 "homepageUrl",
42 "id",
43 "isArchived",
44 "isBlankIssuesEnabled",
45 "isEmpty",
46 "isFork",
47 "isInOrganization",
48 "isMirror",
49 "isPrivate",
50 "isSecurityPolicyEnabled",
51 "isTemplate",
52 "isUserConfigurationRepository",
53 "issueTemplates",
54 "issues",
55 "labels",
56 "languages",
57 "latestRelease",
58 "licenseInfo",
59 "mentionableUsers",
60 "mergeCommitAllowed",
61 "milestones",
62 "mirrorUrl",
63 "name",
64 "nameWithOwner",
65 "openGraphImageUrl",
66 "owner",
67 "parent",
68 "primaryLanguage",
69 "projects",
70 "projectsV2",
71 "pullRequestTemplates",
72 "pullRequests",
73 "pushedAt",
74 "rebaseMergeAllowed",
75 "repositoryTopics",
76 "securityPolicyUrl",
77 "sshUrl",
78 "squashMergeAllowed",
79 "stargazerCount",
80 "templateRepository",
81 "updatedAt",

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected