Skip to content

Commit

Permalink
test: Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmah309 committed Jul 20, 2024
1 parent 62a368d commit f6883fa
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ mod tracing {
let result: Result<(), &str> = Err("error");
let _ = result.error("An error occurred");

assert!(logs_contain("An error occurred: \"error\""));
assert!(logs_contain("An error occurred"));
}

#[traced_test]
Expand All @@ -438,7 +438,7 @@ mod tracing {
let result: Result<(), &str> = Err("warning");
let _ = result.warn("A warning occurred");

assert!(logs_contain("A warning occurred: \"warning\""));
assert!(logs_contain("A warning occurred"));
}

#[traced_test]
Expand All @@ -447,7 +447,7 @@ mod tracing {
let result: Result<(), &str> = Err("info");
let _ = result.info("An info message");

assert!(logs_contain("An info message: \"info\""));
assert!(logs_contain("An info message"));
}

#[traced_test]
Expand All @@ -456,7 +456,7 @@ mod tracing {
let result: Result<(), &str> = Err("debug");
let _ = result.debug("A debug message");

assert!(logs_contain("A debug message: \"debug\""));
assert!(logs_contain("A debug message"));
}

#[traced_test]
Expand All @@ -465,7 +465,7 @@ mod tracing {
let result: Result<(), &str> = Err("trace");
let _ = result.trace("A trace message");

assert!(logs_contain("A trace message: \"trace\""));
assert!(logs_contain("A trace message"));
}

#[traced_test]
Expand Down Expand Up @@ -533,7 +533,7 @@ mod log {
let result: Result<(), &str> = Err("error");
let _ = result.error("An error occurred");

assert!(logs_contain("An error occurred: \"error\""));
assert!(logs_contain("An error occurred"));
}

#[test]
Expand All @@ -542,7 +542,7 @@ mod log {
let result: Result<(), &str> = Err("warning");
let _ = result.warn("A warning occurred");

assert!(logs_contain("A warning occurred: \"warning\""));
assert!(logs_contain("A warning occurred"));
}

#[test]
Expand All @@ -551,7 +551,7 @@ mod log {
let result: Result<(), &str> = Err("info");
let _ = result.info("An info message");

assert!(logs_contain("An info message: \"info\""));
assert!(logs_contain("An info message"));
}

#[test]
Expand All @@ -560,7 +560,7 @@ mod log {
let result: Result<(), &str> = Err("debug");
let _ = result.debug("A debug message");

assert!(logs_contain("A debug message: \"debug\""));
assert!(logs_contain("A debug message"));
}

#[test]
Expand All @@ -569,7 +569,7 @@ mod log {
let result: Result<(), &str> = Err("trace");
let _ = result.trace("A trace message");

assert!(logs_contain("A trace message: \"trace\""));
assert!(logs_contain("A trace message"));
}

#[test]
Expand Down

0 comments on commit f6883fa

Please sign in to comment.