Skip to content

Conversation

@RAprogramm
Copy link
Owner

Summary

Added comprehensive test coverage for src/turnkey/domain.rs:

  • 17 unit tests for TurnkeyErrorKind and TurnkeyError
  • 10 doctests for all public types and methods
  • Module-level documentation with error category overview
  • Complete Display implementation testing
  • Clone, PartialEq, Eq trait testing
  • Input type variation testing (String, str, empty, unicode)
  • Verified map_turnkey_kind mappings

Test Results

  • Unit tests: 386 passed (was 367, +19)
  • Doctests: 10 for turnkey::domain module
  • Clippy: no warnings
  • Formatting: compliant with rustfmt

Coverage

Achieved 100% coverage for src/turnkey/domain.rs module:

  • TurnkeyErrorKind: 100%
  • TurnkeyError: 100%
  • map_turnkey_kind: 100%

Closes #237

Added complete test coverage for src/turnkey/domain.rs:

- Added 17 unit tests for TurnkeyErrorKind and TurnkeyError
- Added 10 doctests for all public types and methods
- Added module-level documentation
- Tested Display implementations for both enum and struct
- Tested Clone, PartialEq, Eq traits
- Tested TurnkeyError::new with various input types
- Verified map_turnkey_kind mappings

Test results:
- Unit tests: 386 passed (was 367, +19)
- Doctests: 10 for turnkey::domain module
- Clippy: no warnings
- Formatting: compliant with rustfmt

Coverage:
- TurnkeyErrorKind: 100%
- TurnkeyError: 100%
- map_turnkey_kind: 100%
@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@RAprogramm RAprogramm merged commit 5b45139 into main Oct 23, 2025
18 checks passed
@RAprogramm RAprogramm deleted the 237 branch October 23, 2025 23:48
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.

src/turnkey/domain.rs

2 participants