everfid-ever opened a new pull request, #962: URL: https://github.com/apache/incubator-seata-go/pull/962
**What this PR does**: Improves test coverage for the errors package from 0% to 100% by adding comprehensive unit tests for SeataError and New() function. **Which issue(s) this PR fixes**: Fixes #960 **Special notes for your reviewer**: - Fixed test expectations to match actual fmt.Sprintf behavior with nil errors (%!s(<nil>)) - Fixed pointer comparison in TestNew_ReturnsPointer to compare addresses instead of values - Added 21 comprehensive test cases covering all code paths - Added 4 benchmark tests for performance monitoring - All tests pass with 100% code coverage **Does this PR introduce a user-facing change?**: ```release-note NONE ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
