Function glean_core::test_get_num_recorded_errors

source ·
pub fn test_get_num_recorded_errors(
    glean: &Glean,
    meta: &CommonMetricDataInternal,
    error: ErrorType
) -> Result<i32, String>
Expand description

Gets the number of recorded errors for the given metric and error type.

*Notes: This is a test-only API, but we need to expose it to be used in integration tests.

§Arguments

  • glean - The Glean object holding the database
  • meta - The metadata of the metric instance
  • error - The type of error

§Returns

The number of errors reported.