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

Function TestListJSONFields

pkg/cmd/discussion/list/list_test.go:20–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18)
19
20func TestListJSONFields(t *testing.T) {
21 jsonfieldstest.ExpectCommandToSupportJSONFields(t, NewCmdList, []string{
22 "id",
23 "number",
24 "title",
25 "body",
26 "url",
27 "closed",
28 "stateReason",
29 "author",
30 "category",
31 "labels",
32 "answered",
33 "answerChosenAt",
34 "answerChosenBy",
35 "createdAt",
36 "updatedAt",
37 "closedAt",
38 "locked",
39 })
40}
41
42func TestNewCmdList(t *testing.T) {
43 tests := []struct {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected