Skip to content

More tests#16

Merged
Avicted merged 6 commits intomainfrom
feature/voice-daemon
Feb 13, 2026
Merged

More tests#16
Avicted merged 6 commits intomainfrom
feature/voice-daemon

Conversation

@Avicted
Copy link
Owner

@Avicted Avicted commented Feb 13, 2026

No description provided.

…RTC manager

- Implement TestLoginConfirmPasswordGetter to verify confirm password retrieval.
- Add TestAddAndRemoveVoiceMember to ensure proper member management in voice daemon.
- Introduce TestPTTControllerRun to validate PTT controller behavior.
- Create voice IPC tests including connection handling and message sending.
- Add audio playback tests for buffer management and safety on nil instances.
- Implement IPC tests for message encoding/decoding and connection lifecycle.
- Add WebRTC manager tests for peer validation, offer/answer flow, and ICE candidate handling.
…close

- Introduced unit tests for audio capture and playback functionalities, ensuring proper handling of nil and zero values during close operations.
- Enhanced the Capture struct with a sync.Once to ensure safe closure of audio devices.
- Added tests for hotkey parsing and server invite repository, covering various scenarios including validation and success cases.
- Implemented mock database interactions for user, device, broadcast, channel, and server invite repositories to validate SQL operations without a real database.
- Enhance hotkey parsing tests with additional cases for capslock aliases and error scenarios.
- Introduce tests for PTT controller in portal and hotkey modes, including validation error handling.
- Add tests for voice stats log loop to ensure counters are flushed correctly on tick.
- Implement tests for WebSocket client connection handling and read loop cancellation.
- Expand channel service tests to verify default service initialization.
- Add error handling tests for user and device repositories in PostgreSQL.
- Introduce tests for voice members management in the voice daemon, ensuring proper member handling and broadcasting.
- Create tests for CPU usage logging to validate context cancellation behavior.
@Avicted Avicted merged commit 4c0101f into main Feb 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant