MCPcopy Index your code
hub / github.com/cli/cli / BenchmarkGenMarkdownToFile

Function BenchmarkGenMarkdownToFile

internal/docs/markdown_test.go:119–134  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

117}
118
119func 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
136func TestPrintFlagsHTMLShowsDefaultValues(t *testing.T) {
137

Callers

nothing calls this directly

Calls 2

genMarkdownCustomFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected