MCPcopy
hub / github.com/smallstep/cli / checkHelpQuality

Function checkHelpQuality

integration/help_test.go:33–41  ·  view source on GitHub ↗
(ts *testscript.TestScript, data []byte)

Source from the content-addressed store, hash-verified

31}
32
33func checkHelpQuality(ts *testscript.TestScript, data []byte) {
34 var report *usage.Report
35 err := json.Unmarshal(data, &report)
36 ts.Check(err)
37
38 checkHeadlineConsistency(ts, report, expectations)
39 checkThresholds(ts, report, expectations)
40 checkNoTODOs(ts, report)
41}
42
43var expectations = map[string]usage.Section{
44 "COMMANDS": {Name: "COMMANDS", Words: 0, Lines: 0},

Callers 1

TestHelpQualityFunction · 0.85

Calls 3

checkHeadlineConsistencyFunction · 0.85
checkThresholdsFunction · 0.85
checkNoTODOsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…