summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-05-09 10:56:13 +0200
committerGitHub <noreply@github.com>2022-05-09 10:56:13 +0200
commitab728e9ccfff2d1ac6362b22b579b00120a39f67 (patch)
treec7577ea32790d8814ade1431b927035da76df23a /runtime
parentd0f5cd6a069e6a416e58b4ece456d134135b11d3 (diff)
feat(test): change "failures:" headers in test report (#14490)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/colors.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/colors.rs b/runtime/colors.rs
index f9d48fe53..7159db9f6 100644
--- a/runtime/colors.rs
+++ b/runtime/colors.rs
@@ -123,3 +123,12 @@ pub fn intense_blue<S: AsRef<str>>(s: S) -> impl fmt::Display {
style_spec.set_fg(Some(Blue)).set_intense(true);
style(s, style_spec)
}
+
+pub fn white_bold_on_red<S: AsRef<str>>(s: S) -> impl fmt::Display {
+ let mut style_spec = ColorSpec::new();
+ style_spec
+ .set_bold(true)
+ .set_bg(Some(Red))
+ .set_fg(Some(White));
+ style(s, style_spec)
+}