1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
This commit is contained in:
yuyi 2023-08-10 08:54:11 +00:00 committed by GitHub
commit 9d6e7d2678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.
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')) + ', '
}