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

Function TestJSONFields

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

Source from the content-addressed store, hash-verified

20)
21
22func TestJSONFields(t *testing.T) {
23 jsonfieldstest.ExpectCommandToSupportJSONFields(t, NewCmdView, []string{
24 "id",
25 "number",
26 "title",
27 "body",
28 "url",
29 "closed",
30 "state",
31 "stateReason",
32 "author",
33 "category",
34 "labels",
35 "answered",
36 "answerChosenAt",
37 "answerChosenBy",
38 "comments",
39 "reactionGroups",
40 "createdAt",
41 "updatedAt",
42 "closedAt",
43 "locked",
44 })
45}
46
47func TestNewCmdView(t *testing.T) {
48 tests := []struct {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected