Skip to content

DAC-143: Add unit tests for SoundManager autoload#33

Merged
krazyjakee merged 1 commit into
masterfrom
feature/DAC-143-sound-manager-tests
Mar 11, 2026
Merged

DAC-143: Add unit tests for SoundManager autoload#33
krazyjakee merged 1 commit into
masterfrom
feature/DAC-143-sound-manager-tests

Conversation

@krazyjakee

Copy link
Copy Markdown
Contributor

Summary

  • Adds tests/unit/test_sound_manager.gd with 17 unit tests for SoundManager
  • Tests instantiation, audio player pool creation via _ready()
  • Tests play() early-return guards: DND, sound disabled, zero volume, unknown sound name
  • Tests play_for_message() skips own messages and currently-viewed channel
  • Tests all 5 AppState signal connections (message_sent, voice_joined, voice_left, voice_mute_changed, voice_deafen_changed)
  • Tests window focus tracking via _notification(NOTIFICATION_APPLICATION_FOCUS_IN/OUT)

Test plan

  • Unit tests pass (./test.sh unit)
  • Lint clean (gdlint scripts/ scenes/)
  • CI passing

Tests cover:
- Instantiation and audio player pool creation
- play() early-return guards: DND, sound disabled, zero volume, unknown sound
- play_for_message() skips own messages and currently-viewed channel
- Signal connections to AppState (message_sent, voice_joined, voice_left,
  voice_mute_changed, voice_deafen_changed)
- Window focus tracking (_window_focused state via _notification)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@krazyjakee krazyjakee force-pushed the feature/DAC-143-sound-manager-tests branch from fcb76d3 to d441e3c Compare March 11, 2026 10:28
@krazyjakee krazyjakee merged commit 8b61554 into master Mar 11, 2026
5 checks passed
@krazyjakee krazyjakee deleted the feature/DAC-143-sound-manager-tests branch March 11, 2026 10:31
krazyjakee added a commit that referenced this pull request Jun 8, 2026
- #32: audit log gains action-type + user filters, cursor pagination
  (load-more), and live gateway prepend via onAuditLogCreate
- #33: reports queue gains status filter (All/Pending/Actioned/Dismissed),
  pagination, and inline delete-message/kick/ban actions that also action
  the report

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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