Skip to content

Commit 8547762

Browse files
committed
v.preludes: avoid warnings for short const names like b in tests with -stats
1 parent 21f207e commit 8547762

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

vlib/v/preludes/tests_with_stats.v

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ mut:
2626
// ///////////////////////////////////////////////////////////////////
2727
// Called at the start of the test program produced by `v -stats file_test.v`
2828
fn start_testing(total_number_of_tests int, vfilename string) BenchedTests {
29-
mut b := BenchedTests{
29+
mut benched_tests_res := BenchedTests{
3030
bench: benchmark.new_benchmark()
3131
}
32-
b.bench.set_total_expected_steps(total_number_of_tests)
33-
b.test_suit_file = vfilename
34-
println('running tests in: $b.test_suit_file')
35-
return b
32+
benched_tests_res.bench.set_total_expected_steps(total_number_of_tests)
33+
benched_tests_res.test_suit_file = vfilename
34+
println('running tests in: $benched_tests_res.test_suit_file')
35+
return benched_tests_res
3636
}
3737

3838
// Called before each test_ function, defined in file_test.v

0 commit comments

Comments
 (0)