From 8547762ab8a0943d19f637b72855c8baa7d6330e Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 8 May 2021 23:00:38 +0300 Subject: [PATCH] v.preludes: avoid warnings for short const names like `b` in tests with -stats --- vlib/v/preludes/tests_with_stats.v | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vlib/v/preludes/tests_with_stats.v b/vlib/v/preludes/tests_with_stats.v index 861073e31e..6a4186608b 100644 --- a/vlib/v/preludes/tests_with_stats.v +++ b/vlib/v/preludes/tests_with_stats.v @@ -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