glean / mozilla.telemetry.glean.private / StringMetricType / testHasValue


@JvmOverloads fun testHasValue(pingName: String = sendInPings.first()): Boolean

Tests whether a value is stored for the metric for testing purposes only. This function will attempt to await the last task (if any) writing to the the metric's storage engine before returning a value.


pingName - represents the name of the ping to retrieve the metric for. Defaults to the first value in sendInPings.

true if metric value exists, otherwise false