A function is only useful in tests
This commit is contained in:
parent
d9b11a30ec
commit
5b1adca42c
5 changed files with 10 additions and 3 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue