fix the tests

This commit is contained in:
Tamo 2024-10-17 09:55:30 +02:00
parent 1ab6fec903
commit fa1db6b721
3 changed files with 10 additions and 4 deletions

View file

@ -158,6 +158,10 @@ impl Analytics {
}
}
pub fn no_analytics() -> Self {
Self { segment: None }
}
pub fn instance_uid(&self) -> Option<&InstanceUid> {
self.segment.as_ref().map(|segment| segment.instance_uid.as_ref())
}