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

Function TestJSONFields

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected