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

Function testChecker

script/ghmock/run_test.go:76–83  ·  view source on GitHub ↗

testChecker returns a checker that uses the schemas in testdata.

(t *testing.T)

Source from the content-addressed store, hash-verified

74
75// testChecker returns a checker that uses the schemas in testdata.
76func testChecker(t *testing.T) *checker {
77 t.Helper()
78 useTestSchemas(t)
79 chk := newChecker(io.Discard)
80 chk.preload()
81 require.Empty(t, chk.unavailable())
82 return chk
83}
84
85// fakeGH implements the few commands the run tests need.
86func fakeGH(args []string) int {

Callers 3

TestMockServerFunction · 0.85
TestCheckRequestFunction · 0.85
TestRunAllFunction · 0.85

Calls 6

useTestSchemasFunction · 0.85
newCheckerFunction · 0.85
preloadMethod · 0.80
EmptyMethod · 0.80
unavailableMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected