test: add voice wake forwarder cache coverage
This commit is contained in:
1 parent
55e0086958
commit
ca4e76b34f
2 files changed
+39
-1
No files matched your search
@@ -70,6 +70,17 @@ enum VoiceWakeForwarder {
|
||||
return "\(self.cliLookupPrefix(target: target, echoPath: echoCliPath)); \(rewritten)"
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
// Test-only helpers
|
||||
static func _testSetCliCache(target: String, path: String) {
|
||||
self.cliCache.set((target: target, path: path))
|
||||
}
|
||||
|
||||
static func _testGetCliCache() -> (target: String, path: String)? {
|
||||
self.cliCache.get()
|
||||
}
|
||||
#endif
|
||||
|
||||
enum VoiceWakeForwardError: LocalizedError, Equatable {
|
||||
case invalidTarget
|
||||
case launchFailed(String)
|
||||
|
||||
Reference in new issue
Block a user