Spaces:
Paused
Paused
Download apps/ios/Tests/CameraControllerErrorTests.swift from nikhtu10/OpenClawBot: direct link, hf CLI and curl.
- Browser
- Download file 782 Bytes
-
https://huggingface.co/spaces/nikhtu10/OpenClawBot/resolve/main/apps/ios/Tests/CameraControllerErrorTests.swift
- Command line
-
hf download hf://spaces/nikhtu10/OpenClawBot/apps/ios/Tests/CameraControllerErrorTests.swift
-
curl -L -o CameraControllerErrorTests.swift https://huggingface.co/spaces/nikhtu10/OpenClawBot/resolve/main/apps/ios/Tests/CameraControllerErrorTests.swift
782 Bytes
| import Testing | |
| @testable import OpenClaw | |
| struct CameraControllerErrorTests { | |
| func errorDescriptionsAreStable() { | |
| #expect(CameraController.CameraError.cameraUnavailable.errorDescription == "Camera unavailable") | |
| #expect(CameraController.CameraError.microphoneUnavailable.errorDescription == "Microphone unavailable") | |
| #expect(CameraController.CameraError.permissionDenied(kind: "Camera") | |
| .errorDescription == "Camera permission denied") | |
| #expect(CameraController.CameraError.invalidParams("bad").errorDescription == "bad") | |
| #expect(CameraController.CameraError.captureFailed("nope").errorDescription == "nope") | |
| #expect(CameraController.CameraError.exportFailed("export").errorDescription == "export") | |
| } | |
| } | |