Skip to content

Commit

Permalink
Better coverage for aggregate functions
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
  • Loading branch information
Licenser committed May 17, 2021
1 parent c792eb9 commit 2afb18d
Show file tree
Hide file tree
Showing 3 changed files with 248 additions and 158 deletions.
18 changes: 9 additions & 9 deletions tremor-script/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub trait TremorAggrFn: DowncastSync + Sync + Send {
///
/// # Errors
/// if the function can not compensate the data
fn compensate<'event>(&mut self, args: &[&Value<'event>]) -> FResult<()>;
// fn compensate<'event>(&mut self, args: &[&Value<'event>]) -> FResult<()>;
/// Emits the function
///
/// # Errors
Expand Down Expand Up @@ -706,14 +706,14 @@ impl TremorAggrFnWrapper {
self.fun.accumulate(args)
}

/// Compensate for a value being removed
///
/// # Errors
/// if compensating the function fails
#[cfg(not(tarpaulin_include))] // just a passthrough
pub fn compensate<'event>(&mut self, args: &[&Value<'event>]) -> FResult<()> {
self.fun.compensate(args)
}
// /// Compensate for a value being removed
// ///
// /// # Errors
// /// if compensating the function fails
// #[cfg(not(tarpaulin_include))] // just a passthrough
// pub fn compensate<'event>(&mut self, args: &[&Value<'event>]) -> FResult<()> {
// self.fun.compensate(args)
// }

/// Emits the function
///
Expand Down
Loading

0 comments on commit 2afb18d

Please sign in to comment.