mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
benchmark: minor cleanup in total_message()
This commit is contained in:
parent
65a493d023
commit
3cadb5e99a
@ -191,9 +191,7 @@ pub fn (b &Benchmark) step_message_skip(msg string) string {
|
||||
// total_message returns a string with total summary of the benchmark run.
|
||||
pub fn (b &Benchmark) total_message(msg string) string {
|
||||
the_label := term.colorize(term.gray, msg)
|
||||
// vfmt off
|
||||
mut tmsg := '${term.colorize(term.bold, 'Summary for $the_label:')} '
|
||||
// vfmt on
|
||||
mut tmsg := term.colorize(term.bold, 'Summary for ${the_label}:') + ' '
|
||||
if b.nfail > 0 {
|
||||
tmsg += term.colorize(term.bold, term.colorize(term.red, '${b.nfail} failed')) + ', '
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user