Files
bot/apps/macos/Tests/OpenClawIPCTests/VoiceWakeOverlayTests.swift
zooqueen 071e3f1082 rebrand: openclaw -> hanzo bot across entire codebase
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
2026-03-19 13:52:32 -07:00

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)
}
}