v.preludes: avoid warnings for short const names like `b` in tests with -stats

pull/10062/head
Delyan Angelov 2021-05-08 23:00:38 +03:00
parent 21f207e781
commit 8547762ab8
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 5 additions and 5 deletions

View File

@ -26,13 +26,13 @@ mut:
// ///////////////////////////////////////////////////////////////////
// Called at the start of the test program produced by `v -stats file_test.v`
fn start_testing(total_number_of_tests int, vfilename string) BenchedTests {
mut b := BenchedTests{
mut benched_tests_res := BenchedTests{
bench: benchmark.new_benchmark()
}
b.bench.set_total_expected_steps(total_number_of_tests)
b.test_suit_file = vfilename
println('running tests in: $b.test_suit_file')
return b
benched_tests_res.bench.set_total_expected_steps(total_number_of_tests)
benched_tests_res.test_suit_file = vfilename
println('running tests in: $benched_tests_res.test_suit_file')
return benched_tests_res
}
// Called before each test_ function, defined in file_test.v