test-cleancode: add more of vlib/v (#8882)
parent
7a35131721
commit
18e88d2fc8
|
@ -37,28 +37,26 @@ const (
|
||||||
'vlib/v/checker/',
|
'vlib/v/checker/',
|
||||||
'vlib/v/depgraph/',
|
'vlib/v/depgraph/',
|
||||||
'vlib/v/doc/',
|
'vlib/v/doc/',
|
||||||
|
'vlib/v/embed_file/',
|
||||||
'vlib/v/errors/',
|
'vlib/v/errors/',
|
||||||
'vlib/v/eval/',
|
'vlib/v/eval/',
|
||||||
'vlib/v/fmt/',
|
'vlib/v/fmt/',
|
||||||
'vlib/v/gen/c/auto_str_methods.v',
|
'vlib/v/gen/c/',
|
||||||
'vlib/v/gen/c/cgen.v',
|
/* 'vlib/v/gen/js/', */
|
||||||
'vlib/v/gen/c/cgen_test.v',
|
'vlib/v/gen/tests/',
|
||||||
'vlib/v/gen/c/cmain.v',
|
'vlib/v/gen/x64/',
|
||||||
'vlib/v/gen/c/comptime.v',
|
'vlib/v/live/',
|
||||||
'vlib/v/gen/c/fn.v',
|
'vlib/v/markused/',
|
||||||
'vlib/v/gen/c/json.v',
|
|
||||||
'vlib/v/gen/c/live.v',
|
|
||||||
'vlib/v/gen/c/profile.v',
|
|
||||||
'vlib/v/gen/c/sql.v',
|
|
||||||
'vlib/v/gen/c/str.v',
|
|
||||||
'vlib/v/gen/x64/elf.v',
|
|
||||||
'vlib/v/gen/x64/elf_obj.v',
|
|
||||||
'vlib/v/gen/x64/gen.v',
|
|
||||||
'vlib/v/parser/',
|
'vlib/v/parser/',
|
||||||
|
/* 'vlib/v/pkgconfig/', */
|
||||||
'vlib/v/pref/',
|
'vlib/v/pref/',
|
||||||
|
'vlib/v/preludes',
|
||||||
'vlib/v/scanner/',
|
'vlib/v/scanner/',
|
||||||
'vlib/v/table/',
|
'vlib/v/table/',
|
||||||
|
/* 'vlib/v/tests/', */
|
||||||
|
'vlib/v/token/',
|
||||||
'vlib/v/util/',
|
'vlib/v/util/',
|
||||||
|
'vlib/v/vcache/',
|
||||||
'vlib/v/vet/',
|
'vlib/v/vet/',
|
||||||
'vlib/v/vmod/',
|
'vlib/v/vmod/',
|
||||||
'vlib/cli/',
|
'vlib/cli/',
|
||||||
|
|
|
@ -52,7 +52,7 @@ pub mut:
|
||||||
// so that the user can set callbacks, read meta information, etc.
|
// so that the user can set callbacks, read meta information, etc.
|
||||||
pub fn info() &LiveReloadInfo {
|
pub fn info() &LiveReloadInfo {
|
||||||
if C.g_live_info != 0 {
|
if C.g_live_info != 0 {
|
||||||
return unsafe {&LiveReloadInfo(C.g_live_info)}
|
return unsafe { &LiveReloadInfo(C.g_live_info) }
|
||||||
}
|
}
|
||||||
// When the current program is not compiled with -live, simply
|
// When the current program is not compiled with -live, simply
|
||||||
// return a new empty struct LiveReloadInfo in order to prevent
|
// return a new empty struct LiveReloadInfo in order to prevent
|
||||||
|
|
|
@ -78,8 +78,8 @@ fn (b &BenchedTests) fn_name() string {
|
||||||
// Called at the end of the test program produced by `v -stats file_test.v`
|
// Called at the end of the test program produced by `v -stats file_test.v`
|
||||||
fn (mut b BenchedTests) end_testing() {
|
fn (mut b BenchedTests) end_testing() {
|
||||||
b.bench.stop()
|
b.bench.stop()
|
||||||
println(inner_indent + b.bench.total_message('running V tests in "' + os.file_name(b.test_suit_file) +
|
println(inner_indent + b.bench.total_message('running V tests in "' +
|
||||||
'"'))
|
os.file_name(b.test_suit_file) + '"'))
|
||||||
}
|
}
|
||||||
|
|
||||||
// ///////////////////////////////////////////////////////////////////
|
// ///////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue