Skip to content

test: add unit tests for Device, Command, Collection, and String extensions#144

Merged
okwasniewski merged 1 commit intomainfrom
feat/tests
Jan 17, 2026
Merged

test: add unit tests for Device, Command, Collection, and String extensions#144
okwasniewski merged 1 commit intomainfrom
feat/tests

Conversation

@okwasniewski
Copy link
Owner

Summary:

Improve test coverage by adding unit tests for core model types and utility extensions that were previously untested.

Changelog:

  • Add DeviceTests - tests displayName computed property for iOS/Android, encoding/decoding
  • Add CommandTests - tests Codable conformance, optional fields, Hashable/Identifiable
  • Add CollectionGetTests - tests safe index access for various collection types
  • Add StringMatchTests - tests regex matching with capture groups, edge cases

Test Plan:

xcodebuild test -scheme MiniSim -destination 'platform=macOS'

All 4 new test files pass. Build verified with xcodebuild build.

@okwasniewski okwasniewski merged commit e1a4f4b into main Jan 17, 2026
3 checks passed
@okwasniewski okwasniewski deleted the feat/tests branch January 17, 2026 10:06
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