(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestHelpQuality(t *testing.T) { |
| 22 | testscript.Run(t, testscript.Params{ |
| 23 | Files: []string{"testdata/help/html.txtar"}, |
| 24 | Cmds: map[string]func(ts *testscript.TestScript, neg bool, args []string){ |
| 25 | "check_quality": func(ts *testscript.TestScript, neg bool, args []string) { |
| 26 | htmlReport := ts.ReadFile(filepath.Join(args[0], "report.json")) |
| 27 | checkHelpQuality(ts, []byte(htmlReport)) |
| 28 | }, |
| 29 | }, |
| 30 | }) |
| 31 | } |
| 32 | |
| 33 | func checkHelpQuality(ts *testscript.TestScript, data []byte) { |
| 34 | var report *usage.Report |
nothing calls this directly
no test coverage detected
searching dependent graphs…