MCPcopy Create free account
hub / github.com/google/go-github / TestUnused

Function TestUnused

tools/metadata/main_test.go:54–68  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

52}
53
54func TestUnused(t *testing.T) {
55 t.Parallel()
56 res := runTest(t, "testdata/unused", "unused")
57 res.assertOutput(`
58Found 3 unused operations
59
60GET /a/{a_id}
61doc: https://docs.github.com/rest/a/a#overridden-get-a
62
63POST /a/{a_id}
64doc: https://docs.github.com/rest/a/a#update-a
65
66GET /undocumented/{undocumented_id}
67`, "")
68}
69
70//nolint:paralleltest // cannot use t.Parallel() when helper calls t.Setenv
71func TestUpdateOpenAPI(t *testing.T) {

Callers

nothing calls this directly

Calls 2

runTestFunction · 0.85
assertOutputMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…