File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ import (
17
17
//
18
18
// To run benchmarks, run the command:
19
19
//
20
- // go test -run=^$ -bench=. ./cmd/helm-docs
21
- //
20
+ // go test -run=^$ -bench=. ./cmd/helm-docs
22
21
func BenchmarkHelmDocs (b * testing.B ) {
23
22
// Copy testdata to a new temporary directory, to keep the working directory clean.
24
23
tmp := copyToTempDir (b , os .DirFS (filepath .Join ("testdata" , "benchmark" )))
@@ -89,6 +88,7 @@ func (v *testFlagValue) ValueType() string {
89
88
// copyToTempDir copies the specified readonly filesystem into a new temporary directory and returns
90
89
// the path to the temporary directory. It fails the benchmark on any error and handles cleanup when
91
90
// the benchmark finishes.
91
+ // TODO make use of B.TempDir instead of implementing directly https://pkg.go.dev/testing#B.TempDir
92
92
func copyToTempDir (b * testing.B , fsys fs.FS ) string {
93
93
// Create the temporary directory.
94
94
tmp , err := os .MkdirTemp ("" , "" )
You can’t perform that action at this time.
0 commit comments