aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/analyzers.rs16
-rw-r--r--tests/logs/analyzers/mai-failed-pre-echo-20220420.zevtcbin0 -> 26262 bytes
2 files changed, 15 insertions, 1 deletions
diff --git a/tests/analyzers.rs b/tests/analyzers.rs
index dc876d6..9779e27 100644
--- a/tests/analyzers.rs
+++ b/tests/analyzers.rs
@@ -63,7 +63,21 @@ fn test_mai_cm_succeeded() {
#[test]
fn test_mai_cm_failed() {
- let log = evtclib::process_file("tests/logs/cms/mai-trin-failed.zevtc", Compression::Zip).unwrap();
+ let log =
+ evtclib::process_file("tests/logs/cms/mai-trin-failed.zevtc", Compression::Zip).unwrap();
+
+ let analyzer = log.analyzer().expect("No analyzer for Mai Trin");
+
+ assert_eq!(analyzer.outcome(), Some(Outcome::Failure));
+}
+
+#[test]
+fn test_mai_failed_pre_echo() {
+ let log = evtclib::process_file(
+ "tests/logs/analyzers/mai-failed-pre-echo-20220420.zevtc",
+ Compression::Zip,
+ )
+ .unwrap();
let analyzer = log.analyzer().expect("No analyzer for Mai Trin");
diff --git a/tests/logs/analyzers/mai-failed-pre-echo-20220420.zevtc b/tests/logs/analyzers/mai-failed-pre-echo-20220420.zevtc
new file mode 100644
index 0000000..94443a0
--- /dev/null
+++ b/tests/logs/analyzers/mai-failed-pre-echo-20220420.zevtc
Binary files differ