Closed shogo82148 closed 4 months ago
[!CAUTION]
Review failed
The pull request is closed.
The recent changes to the A1Notation
class in mod.ts
improve its design by making key properties read-only, thereby enhancing integrity and preventing modifications post-instantiation. The constructor logic has been streamlined for direct assignment of parsed values, promoting immutability and predictability. Furthermore, tests have been updated to reflect these changes, ensuring that invalid inputs are handled appropriately.
Files | Change Summary |
---|---|
mod.ts |
Converted properties sheetName , left , top , right , and bottom to read-only. Updated constructor logic to streamline object creation. |
mod.test.ts |
Introduced new test cases for invalid parameters in A1Notation . Modified existing tests to directly pass values to the constructor, improving conciseness. |
In the garden where the code does play,
A rabbit hops, with changes on the way.
Properties now locked tight like a treasure,
Immutable delight, oh what a pleasure!
With each hop and bound, the code feels bright,
In this land of logic, everything’s just right! 🐇✨
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 97.06%. Comparing base (
bb45ad2
) to head (080ff82
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary by CodeRabbit
New Features
A1Notation
class by making key properties read-only, ensuring they cannot be modified after instantiation.Tests
A1Notation
class.