mirror of
https://github.com/hanzoai/bot.git
synced 2026-11-01 18:02:28 +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
19 lines
745 B
Swift
19 lines
745 B
Swift
import CoreLocation
|
|
import Testing
|
|
@testable import Hanzo Bot
|
|
|
|
struct PermissionManagerLocationTests {
|
|
@Test
|
|
func `authorizedAlways counts for both modes`() {
|
|
#expect(PermissionManager.isLocationAuthorized(status: .authorizedAlways, requireAlways: false))
|
|
#expect(PermissionManager.isLocationAuthorized(status: .authorizedAlways, requireAlways: true))
|
|
}
|
|
|
|
@Test
|
|
func `other statuses not authorized`() {
|
|
#expect(!PermissionManager.isLocationAuthorized(status: .notDetermined, requireAlways: false))
|
|
#expect(!PermissionManager.isLocationAuthorized(status: .denied, requireAlways: false))
|
|
#expect(!PermissionManager.isLocationAuthorized(status: .restricted, requireAlways: false))
|
|
}
|
|
}
|