test: bring tarpaulin coverage back up

This commit is contained in:
TechnoPorg committed 2026-02-13 00:20:59 +01:00
1 parent fe8de2784b
commit a6b8ce4a8f
5 files changed
+82 -47

No files matched your search

+17 -1
View File
@@ -1,7 +1,10 @@
//! Unit tests for runner module
use std::collections::HashMap;
use std::hash::Hasher;
use crate::error::DagError;
use crate::runner::DagRunner;
use crate::runner::{DagRunner, PassThroughHasher};
use crate::types::TaskHandle;
// Initialize tracing subscriber for tests (idempotent)
@@ -240,3 +243,16 @@ async fn test_task_panic_in_multi_task_layer() {
// The run should fail due to the panic
assert!(result.is_err());
}
#[test]
fn test_passthrough_hasher() {
let mut passthrough_hashmap = HashMap::with_hasher(PassThroughHasher::default());
passthrough_hashmap.insert(64u32, "test string");
}
#[test]
#[should_panic]
fn test_passthrough_hasher_only_u32() {
let mut passthrough_hasher = PassThroughHasher::default();
passthrough_hasher.write(&[0; 4]);
}
+6
View File
@@ -33,3 +33,9 @@ async fn test_custom_task_implementation() {
// Can't call run again since task was consumed
// This demonstrates the ownership model
}
#[test]
fn test_empty_task_input() {
let empty = TaskInput::empty();
assert_eq!(empty.inputs.len(), 0);
}