(ts *testscript.TestScript, data []byte)
| 31 | } |
| 32 | |
| 33 | func 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 | |
| 43 | var expectations = map[string]usage.Section{ |
| 44 | "COMMANDS": {Name: "COMMANDS", Words: 0, Lines: 0}, |
no test coverage detected
searching dependent graphs…