glean / mozilla.telemetry.glean.private / DatetimeMetricType / testGetValue


@JvmOverloads fun testGetValue(pingName: String = sendInPings.first()): Date

Returns the stored value 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.

Date objects are always in the user's local timezone offset. If you care about checking that the timezone offset was set and sent correctly, use testGetValueAsString and inspect the offset.


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


NullPointerException - if no value is stored

value of the stored metric