optimize table.all_test_function_names
parent
e9931e6f84
commit
15a2927f09
|
@ -834,16 +834,22 @@ fn (t &Table) all_test_function_names() []string {
|
||||||
fn_end_test_name = f.name
|
fn_end_test_name = f.name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mut res := []string
|
if fn_begin_test_name.len == 0 {
|
||||||
if fn_begin_test_name.len > 0 {
|
if fn_end_test_name.len > 0 {
|
||||||
res << fn_begin_test_name
|
fn_test_names << fn_end_test_name
|
||||||
}
|
}
|
||||||
|
return fn_test_names
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
mut res := []string
|
||||||
|
res << fn_begin_test_name
|
||||||
res << fn_test_names
|
res << fn_test_names
|
||||||
if fn_end_test_name.len > 0 {
|
if fn_end_test_name.len > 0 {
|
||||||
res << fn_end_test_name
|
res << fn_end_test_name
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn (t &Table) find_const(name string) ?Var {
|
fn (t &Table) find_const(name string) ?Var {
|
||||||
// println('find const l=$t.consts.len')
|
// println('find const l=$t.consts.len')
|
||||||
|
|
Loading…
Reference in New Issue