1
0
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:
yuyi 2023-08-10 16:52:42 +08:00
parent 65a493d023
commit 3cadb5e99a

View File

@ -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. // total_message returns a string with total summary of the benchmark run.
pub fn (b &Benchmark) total_message(msg string) string { pub fn (b &Benchmark) total_message(msg string) string {
the_label := term.colorize(term.gray, msg) the_label := term.colorize(term.gray, msg)
// vfmt off mut tmsg := term.colorize(term.bold, 'Summary for ${the_label}:') + ' '
mut tmsg := '${term.colorize(term.bold, 'Summary for $the_label:')} '
// vfmt on
if b.nfail > 0 { if b.nfail > 0 {
tmsg += term.colorize(term.bold, term.colorize(term.red, '${b.nfail} failed')) + ', ' tmsg += term.colorize(term.bold, term.colorize(term.red, '${b.nfail} failed')) + ', '
} }