test: add mac coverage helpers

This commit is contained in:
Peter Steinberger
2025-12-24 19:29:44 +01:00
parent f44014ff00
commit 204bd7d2c4
11 changed files with 632 additions and 71 deletions

View File

@@ -132,3 +132,27 @@ final class PresenceReporter {
return en0 ?? fallback
}
}
#if DEBUG
extension PresenceReporter {
static func _testComposePresenceSummary(mode: String, reason: String) -> String {
self.composePresenceSummary(mode: mode, reason: reason)
}
static func _testAppVersionString() -> String {
self.appVersionString()
}
static func _testPlatformString() -> String {
self.platformString()
}
static func _testLastInputSeconds() -> Int? {
self.lastInputSeconds()
}
static func _testPrimaryIPv4Address() -> String? {
self.primaryIPv4Address()
}
}
#endif