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

Function readTestdata

script/ghmock/schemafiles_test.go:51–56  ·  view source on GitHub ↗
(t *testing.T, name string)

Source from the content-addressed store, hash-verified

49}
50
51func readTestdata(t *testing.T, name string) string {
52 t.Helper()
53 data, err := os.ReadFile(filepath.Join("testdata", name))
54 require.NoError(t, err)
55 return string(data)
56}
57
58func TestSchemaSourceLocate(t *testing.T) {
59 schema := readTestdata(t, "schema.graphql")

Callers 2

TestSchemaSourceLocateFunction · 0.85
TestCmdSchemasFunction · 0.85

Calls 2

JoinMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected