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

Function TestHelpQuality

integration/help_test.go:21–31  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

19}
20
21func 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
33func checkHelpQuality(ts *testscript.TestScript, data []byte) {
34 var report *usage.Report

Callers

nothing calls this directly

Calls 2

checkHelpQualityFunction · 0.85
RunMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…