common/src/testFixtures/java/bio/terra/cloudres/testing/MetricsTestUtil.java
/**
   * Assert the count is a value. 0 is equivalent to no count being present'
   *
   * <p>The clear stats in opencensus is not public, so we have to keep track of each stats and
   * verify the increment.
   */
Assert the count is a value. 0 is equivalent to no count being present'
The clear stats in opencensus is not public, so we have to keep track of each stats and
verify the increment.
Assert the count is a value . 0 is equivalent to no count being present ' The clear stats in opencensus is not public so we have to keep track of each stats and verify the increment .
public static void assertCountIncremented(
      View.Name viewName, List<TagValue> tags, long previous, long increment) {
    if (previous == 0 && increment == 0) {
      assertNull(MetricsHelper.viewManager.getView(viewName).getAggregationMap().get(tags));
    } else {
      assertEquals(
          AggregationData.CountData.create(increment + previous),
          MetricsHelper.viewManager.getView(viewName).getAggregationMap().get(tags));
    }
  }
public static void assertCountIncremented ( View . Name viewName , List < TagValue > tags , long previous , long increment ) { if ( previous == 0 && increment == 0 ) { assertNull ( MetricsHelper . viewManager . getView ( viewName ) . getAggregationMap ( ) . get ( tags ) ) ; } else { assertEquals ( AggregationData . CountData . create ( increment + previous ) , MetricsHelper . viewManager . getView ( viewName ) . getAggregationMap ( ) . get ( tags ) ) ; } }
Assert the count is a value.
Assert the count is a value .