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

Function TestViewJSONFields

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

Source from the content-addressed store, hash-verified

20)
21
22func TestViewJSONFields(t *testing.T) {
23 jsonfieldstest.ExpectCommandToSupportJSONFields(t, NewCmdView, []string{
24 "body",
25 "bodyHtml",
26 "createdAt",
27 "creator",
28 "description",
29 "id",
30 "name",
31 "number",
32 "type",
33 "updatedAt",
34 "updatedByActor",
35 "url",
36 "versions",
37 })
38}
39
40func TestNewCmdView(t *testing.T) {
41 tests := []struct {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected