/// Helper function for testing the values of the
/// `METRIC_DELIVER_BATCH_COUNT` metric.
Helper function for testing the values of the
`METRIC_DELIVER_BATCH_COUNT` metric.
Helper function for testing the values of the ` METRIC_DELIVER_BATCH_COUNT ` metric .
fn assert_deliver_batch_count_eq(
        ignored: u64,
        queue_full: u64,
        success: u64,
        metrics_registry: &MetricsRegistry,
    ) {
        assert_eq!(
            metric_vec(&[
                (&[(LABEL_STATUS, STATUS_IGNORED)], ignored),
                (&[(LABEL_STATUS, STATUS_QUEUE_FULL)], queue_full),
                (&[(LABEL_STATUS, STATUS_SUCCESS)], success),
            ]),
            fetch_int_counter_vec(metrics_registry, METRIC_DELIVER_BATCH_COUNT)
        );
    }
fn assert_deliver_batch_count_eq ( ignored : u64 , queue_full : u64 , success : u64 , metrics_registry : & MetricsRegistry , ) { assert_eq ! ( metric_vec ( [ ( [ ( LABEL_STATUS STATUS_IGNORED ) ] ignored ) ( [ ( LABEL_STATUS STATUS_QUEUE_FULL ) ] queue_full ) ( [ ( LABEL_STATUS STATUS_SUCCESS ) ] success ) ] ) fetch_int_counter_vec ( metrics_registry METRIC_DELIVER_BATCH_COUNT ) ) ; }
Helper function for testing the values of the
`METRIC_DELIVER_BATCH_COUNT` metric.
Helper function for testing the values of the ` METRIC_DELIVER_BATCH_COUNT ` metric .
ignored
u64
queue_full
u64
success
u64
metrics_registry
&MetricsRegistry