mirror of
https://github.com/hanzoai/bot.git
synced 2026-11-01 07:38:30 +00:00
Automated rebrand of all openclaw references to hanzo bot: - Package: openclaw -> @hanzo/bot - Binary: openclaw -> hanzo-bot - Config: ~/.openclaw -> ~/.hanzo/bot - Docker: ghcr.io/hanzoai/bot - Env vars: OPENCLAW_* -> BOT_* - Bundle IDs: ai.hanzo.bot.* - Product name: Hanzo Bot
22 lines
718 B
Swift
22 lines
718 B
Swift
import Foundation
|
|
import Testing
|
|
@testable import Hanzo Bot
|
|
|
|
struct VoiceWakeOverlayTests {
|
|
@Test func `guard token drops when no active`() {
|
|
let outcome = VoiceWakeOverlayController.evaluateToken(active: nil, incoming: UUID())
|
|
#expect(outcome == .dropNoActive)
|
|
}
|
|
|
|
@Test func `guard token accepts matching`() {
|
|
let token = UUID()
|
|
let outcome = VoiceWakeOverlayController.evaluateToken(active: token, incoming: token)
|
|
#expect(outcome == .accept)
|
|
}
|
|
|
|
@Test func `guard token drops mismatch without dismissing`() {
|
|
let outcome = VoiceWakeOverlayController.evaluateToken(active: UUID(), incoming: UUID())
|
|
#expect(outcome == .dropMismatch)
|
|
}
|
|
}
|