/** * Returns the number of errors recorded for the given metric. * * @param errorType The type of the error recorded. * @param pingName represents the name of the ping to retrieve the metric for. * Defaults to the first value in `sendInPings`. * @return the number of errors recorded for the metric. */ public Int32 TestGetNumRecordedErrors(Testing.ErrorType errorType, string pingName = null) { Dispatchers.AssertInTestingMode(); string ping = pingName ?? sendInPings[0]; return(LibGleanFFI.glean_datetime_test_get_num_recorded_errors( this.handle, (int)errorType, ping )); }