crates/languages/src/go/runnables.scm 🔗
@@ -69,7 +69,7 @@
(
(
(function_declaration name: (_) @run @_name
- (#match? @_name "^Benchmark.+"))
+ (#match? @_name "^Benchmark.*"))
) @_
(#set! tag go-benchmark)
)
Robert Fratto created
The regular expression for benchmarks was enforcing using a suffix
(e.g., `BenchmarkFoo`), but `Benchmark` is a valid benchmark name, just
as `Test` is a valid test name, and `Fuzz` is a valid fuzz test name.
Release Notes:
- Add support for running Go benchmarks named "Benchmark"
crates/languages/src/go/runnables.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -69,7 +69,7 @@
(
(
(function_declaration name: (_) @run @_name
- (#match? @_name "^Benchmark.+"))
+ (#match? @_name "^Benchmark.*"))
) @_
(#set! tag go-benchmark)
)