Skip to content

Commit 3c5f194

Browse files
committed
Updated test util
Signed-off-by: Marvin Hansen <[email protected]>
1 parent 3397e33 commit 3c5f194

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

deep_causality/src/utils_test/test_utils_generator.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,21 @@ where
8484
pub context_dest: Option<Context<D, S, T, ST, SYM, VS, VT>>,
8585
}
8686

87+
impl<D, S, T, ST, SYM, VS, VT> Default for TestProcessor<D, S, T, ST, SYM, VS, VT>
88+
where
89+
D: Default + Datable + Copy + Clone + Hash + Eq + PartialEq,
90+
S: Spatial<VS> + Clone,
91+
T: Temporal<VT> + Clone,
92+
ST: SpaceTemporal<VS, VT> + Clone,
93+
SYM: Symbolic + Clone,
94+
VS: Clone,
95+
VT: Clone,
96+
{
97+
fn default() -> Self {
98+
Self::new()
99+
}
100+
}
101+
87102
impl<D, S, T, ST, SYM, VS, VT> TestProcessor<D, S, T, ST, SYM, VS, VT>
88103
where
89104
D: Default + Datable + Copy + Clone + Hash + Eq + PartialEq,
@@ -193,4 +208,10 @@ mod tests {
193208
let result = generator.generate(&trigger, &context);
194209
assert!(result.is_ok());
195210
}
211+
212+
#[test]
213+
fn test_processor_default() {
214+
let proc = TestProcessorAlias::default();
215+
assert!(proc.causaloid_dest.is_none());
216+
}
196217
}

0 commit comments

Comments
 (0)