/** * Delegates call to {@link AdditionalMatchers#eq(float, float)}. */ default float eq(float value, float delta) { return AdditionalMatchers.eq(value, delta); } }
/** * Delegates call to {@link AdditionalMatchers#eq(double, double)}. */ default double eq(double value, double delta) { return AdditionalMatchers.eq(value, delta); }
/** * Delegates call to {@link AdditionalMatchers#eq(float, float)}. */ default float eq(float value, float delta) { return AdditionalMatchers.eq(value, delta); } }
/** * Delegates call to {@link AdditionalMatchers#eq(double, double)}. */ default double eq(double value, double delta) { return AdditionalMatchers.eq(value, delta); }
verify(mb).addCounter(info("S1NumOps", "Number of ops for stat"), 1L); verify(mb).addGauge(eq(info("S1AvgTime", "Average time for stat")), eq(0.0, EPSILON)); verify(mb).addGauge(eq(info("S1StdevTime", "Standard deviation of time for stat")), eq(0.0, EPSILON)); verify(mb).addGauge(eq(info("S1IMinTime", "Interval min time for stat")), eq(0.0, EPSILON)); verify(mb).addGauge(eq(info("S1IMaxTime", "Interval max time for stat")), eq(0.0, EPSILON)); verify(mb).addGauge(eq(info("S1MinTime","Min time for stat")), eq(0.0, EPSILON)); verify(mb).addGauge(eq(info("S1MaxTime","Max time for stat")), eq(0.0, EPSILON)); verify(mb, times(2)) .addCounter(info("S2NumOps", "Number of ops for stat"), 1L); verify(mb, times(2)).addGauge(eq(info("S2AvgTime", "Average time for stat")), eq(0.0, EPSILON)); verify(mb).addCounter(info("S2NumOps", "Number of ops for stat"), 2L); verify(mb).addGauge(eq(info("S2AvgTime", "Average time for stat")), eq(1.0, EPSILON));
verify(mb).addCounter(info("S1NumOps", "Number of ops for stat"), 1L); verify(mb).addGauge(eq(info("S1AvgTime", "Average time for stat")), eq(0.0, EPSILON)); verify(mb).addGauge(eq(info("S1StdevTime", "Standard deviation of time for stat")), eq(0.0, EPSILON)); verify(mb).addGauge(eq(info("S1IMinTime", "Interval min time for stat")), eq(0.0, EPSILON)); verify(mb).addGauge(eq(info("S1IMaxTime", "Interval max time for stat")), eq(0.0, EPSILON)); verify(mb).addGauge(eq(info("S1MinTime","Min time for stat")), eq(0.0, EPSILON)); verify(mb).addGauge(eq(info("S1MaxTime","Max time for stat")), eq(0.0, EPSILON)); verify(mb, times(2)) .addCounter(info("S2NumOps", "Number of ops for stat"), 1L); verify(mb, times(2)).addGauge(eq(info("S2AvgTime", "Average time for stat")), eq(0.0, EPSILON)); verify(mb).addCounter(info("S2NumOps", "Number of ops for stat"), 2L); verify(mb).addGauge(eq(info("S2AvgTime", "Average time for stat")), eq(1.0, EPSILON));