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

Function TestJSONFields

pkg/cmd/release/view/view_test.go:23–44  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21)
22
23func TestJSONFields(t *testing.T) {
24 jsonfieldstest.ExpectCommandToSupportJSONFields(t, NewCmdView, []string{
25 "apiUrl",
26 "author",
27 "assets",
28 "body",
29 "createdAt",
30 "databaseId",
31 "id",
32 "isDraft",
33 "isPrerelease",
34 "isImmutable",
35 "name",
36 "publishedAt",
37 "tagName",
38 "tarballUrl",
39 "targetCommitish",
40 "uploadUrl",
41 "url",
42 "zipballUrl",
43 })
44}
45
46func Test_NewCmdView(t *testing.T) {
47 tests := []struct {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected