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 databasemeta
- The metadata of the metric instanceerror
- The type of error
Returns
The number of errors reported.