1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

testing: support for internal module testing

This commit is contained in:
Delyan Angelov
2019-12-14 14:57:28 +02:00
committed by Alexander Medvednikov
parent 3a2c46a1ce
commit 1cd5fab21d
8 changed files with 80 additions and 24 deletions

View File

@ -34,7 +34,7 @@ fn start_testing() BenchedTests {
// Called before each test_ function, defined in file_test.v
fn (b mut BenchedTests) testing_step_start(stepfunc string) {
b.step_func_name = stepfunc.replace('main__','')
b.step_func_name = stepfunc.replace('main__','').replace('__','.')
b.oks = C.g_test_oks
b.fails = C.g_test_fails
b.bench.step()