[][src]Function glean_core::test_get_num_recorded_errors

pub fn test_get_num_recorded_errors(
    glean: &Glean,
    meta: &CommonMetricData,
    error: ErrorType,
    ping_name: Option<&str>
) -> Result<i32, String>

Get 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.


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

Return value

The number of errors reported