Skip to content

Commit a4b16f7

Browse files
committed
docs: Update CHANGELOG with recent commits
- Added entries for comprehensive unit test additions - Added entries for Singleton and Builder testability improvements - Added entries for HashAlgorithm testability improvements - Documented code coverage improvements - Organized changes by type (Added, Changed, Fixed, Documentation) See CHANGELOG.md for details.
1 parent f790ad3 commit a4b16f7

File tree

1 file changed

+36
-12
lines changed

1 file changed

+36
-12
lines changed

CHANGELOG.md

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [Unreleased]
99

1010
### Added
11-
- N/A
11+
- Added comprehensive unit tests for Builder pattern (12 tests total)
12+
- Test for BaseBuilder default implementation (notImplemented error)
13+
- Tests for BuilderError localizedDescription for all error cases
14+
- Test for fluent API chaining with multiple method calls
15+
- Test for optional properties handling
16+
- Test for multiple independent builder instances
17+
- Test for ValidatingBuilderProtocol default implementation
18+
- Comprehensive validation tests with multiple rules
19+
- Test for error pattern matching
20+
- Test for builder reuse scenarios
21+
- Added comprehensive unit tests to improve code coverage
22+
- Added tests for Singleton createShared() path and init()
23+
- Added tests for BaseStrategy and StrategyContext edge cases
24+
- Added tests for Factory error handling, thread safety, and edge cases
25+
- Added tests for Registry protocol method, default keys, and thread safety
26+
- Added tests for HashAlgorithm extension fallback behavior
27+
- Added test for HashAlgorithm string extension consistency
28+
- Added SingletonError enum for better error handling in Singleton pattern
1229

1330
### Changed
14-
- N/A
15-
16-
### Deprecated
17-
- N/A
18-
19-
### Removed
20-
- N/A
31+
- Refactored Singleton.createShared() to throw SingletonError instead of fatalError
32+
- Makes the error path testable while maintaining fatalError for production use
33+
- Improved Singleton function coverage from 50% to 80%
34+
- Refactored HashAlgorithm extension to improve testability
35+
- Added documentation explaining UTF-8 conversion fallback behavior
36+
- Documented fallback hash path as conditionally untestable
37+
- Improved overall code coverage:
38+
- Regions: 87.31% → 87.75%
39+
- Functions: 88.24% → 90.29%
40+
- Lines: 90.91% → 91.38%
2141

2242
### Fixed
23-
- N/A
24-
25-
### Security
26-
- N/A
43+
- Fixed compiler warning in SingletonTests about 'is' test always being true
44+
- Fixed Builder pattern testability - improved coverage to 100% (from 66.67%)
45+
- Fixed test for StrategyContext with same strategy type
46+
47+
### Documentation
48+
- Added documentation explaining why fatalError path in Singleton.shared cannot be tested
49+
- Added documentation to HashAlgorithm fallback implementation explaining conditional testability
50+
- Improved code documentation for testability throughout codebase
2751

2852
## [1.0.2] - 2025-12-04
2953

0 commit comments

Comments
 (0)