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

Function TestJSONFields

pkg/cmd/repo/read-file/read_file_test.go:25–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23)
24
25func TestJSONFields(t *testing.T) {
26 jsonfieldstest.ExpectCommandToSupportJSONFields(t, NewCmdReadFile, []string{
27 "name",
28 "path",
29 "gitSHA",
30 "size",
31 "url",
32 "htmlUrl",
33 "gitUrl",
34 "downloadUrl",
35 "type",
36 "encoding",
37 "content",
38 })
39}
40
41func Test_repoFile_ExportData(t *testing.T) {
42 file := &repoFile{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected