test: add ios coverage hooks

This commit is contained in:
Peter Steinberger
2025-12-24 20:00:45 +01:00
parent 65b48561a9
commit 14fae5af9e
3 changed files with 60 additions and 0 deletions

View File

@@ -198,3 +198,15 @@ final class ScreenRecordService {
return min(30, max(1, v))
}
}
#if DEBUG
extension ScreenRecordService {
nonisolated static func _test_clampDurationMs(_ ms: Int?) -> Int {
self.clampDurationMs(ms)
}
nonisolated static func _test_clampFps(_ fps: Double?) -> Double {
self.clampFps(fps)
}
}
#endif