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

Function TestJSONFields

pkg/cmd/repo/read-dir/read_dir_test.go:22–36  ·  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, NewCmdReadDir, []string{
24 "name",
25 "path",
26 "nameRaw",
27 "pathRaw",
28 "type",
29 "gitType",
30 "mode",
31 "modeOctal",
32 "gitSHA",
33 "size",
34 "submodule",
35 })
36}
37
38func Test_entryTypeFromMode(t *testing.T) {
39 tests := []struct {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected