(b *testing.B)
| 117 | } |
| 118 | |
| 119 | func BenchmarkGenMarkdownToFile(b *testing.B) { |
| 120 | file, err := os.CreateTemp(b.TempDir(), "") |
| 121 | if err != nil { |
| 122 | b.Fatal(err) |
| 123 | } |
| 124 | defer file.Close() |
| 125 | |
| 126 | linkHandler := func(s string) string { return s } |
| 127 | |
| 128 | b.ResetTimer() |
| 129 | for i := 0; i < b.N; i++ { |
| 130 | if err := genMarkdownCustom(rootCmd, file, linkHandler); err != nil { |
| 131 | b.Fatal(err) |
| 132 | } |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | func TestPrintFlagsHTMLShowsDefaultValues(t *testing.T) { |
| 137 |
nothing calls this directly
no test coverage detected