Closed hamzahrmalik closed 1 year ago
@swift-server-bot add to allowlist
This has a merge conflict now due to the introduced meters on main, could you rebase @hamzahrmalik ?
Otherwise LGTM so let's merge this and the follow up which adds tests to this 👍
This has a merge conflict now due to the introduced meters on main, could you rebase @hamzahrmalik ?
Otherwise LGTM so let's merge this and the follow up which adds tests to this 👍
I actually think we should merge #128 first That one is simply a refactor, and will make this one very simple (just adding public modifiers)
Yeah that works, merged #128 👍
LGTM thanks!
Provide functions on TestMetrics to retrieve all counters/timers/recorders
Motivation:
Users may want to iterate over metrics to perform some complex assertions. For example, they might want to confirm that no metrics have been emitted with a certain dimension
Modifications:
Added functions for allRecorders, allTimers and allCounters which return arrays of TestRecorder, TestTimer and TestCounter