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
23 lines
629 B
Swift
23 lines
629 B
Swift
import Testing
|
|
@testable import Hanzo Bot
|
|
|
|
@Suite(.serialized) struct GatewayDiscoveryModelTests {
|
|
@Test @MainActor func debugLoggingCapturesLifecycleAndResets() {
|
|
let model = GatewayDiscoveryModel()
|
|
|
|
#expect(model.debugLog.isEmpty)
|
|
#expect(model.statusText == "Idle")
|
|
|
|
model.setDebugLoggingEnabled(true)
|
|
#expect(model.debugLog.count >= 2)
|
|
|
|
model.stop()
|
|
#expect(model.statusText == "Stopped")
|
|
#expect(model.gateways.isEmpty)
|
|
#expect(model.debugLog.count >= 3)
|
|
|
|
model.setDebugLoggingEnabled(false)
|
|
#expect(model.debugLog.isEmpty)
|
|
}
|
|
}
|