Skip to content

Commit

Permalink
feat(derive): span batch unit tests with acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Apr 18, 2024
1 parent b52b97c commit e35d830
Show file tree
Hide file tree
Showing 2 changed files with 411 additions and 11 deletions.
5 changes: 5 additions & 0 deletions crates/derive/src/stages/test_utils/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ impl TraceStorage {
pub fn lock(&self) -> spin::MutexGuard<'_, Vec<(Level, String)>> {
self.0.lock()
}

/// Returns if the storage is empty.
pub fn is_empty(&self) -> bool {
self.0.lock().is_empty()
}
}

#[derive(Debug, Default)]
Expand Down
Loading

0 comments on commit e35d830

Please sign in to comment.