A function is only useful in tests

This commit is contained in:
daladim 2021-04-17 20:20:30 +02:00
parent d9b11a30ec
commit 5b1adca42c
5 changed files with 10 additions and 3 deletions

View file

@ -103,10 +103,11 @@ impl Item {
}
}
#[cfg(any(test, feature = "integration_tests"))]
pub fn has_same_observable_content_as(&self, other: &Item) -> bool {
match (self, other) {
(Item::Event(s), Item::Event(o)) => s.has_same_observable_content_as(o),
(Item::Task(s), Item::Task(o)) => s.has_same_observable_content_as(o),
(Item::Task(s), Item::Task(o)) => s.has_same_observable_content_as(o),
_ => false,
}
}