Skip to content

cpython: add unit tests for error types#50

Open
abhishrestha wants to merge 5 commits intoOpenPrinting:masterfrom
abhishrestha:error-tests
Open

cpython: add unit tests for error types#50
abhishrestha wants to merge 5 commits intoOpenPrinting:masterfrom
abhishrestha:error-tests

Conversation

@abhishrestha
Copy link
Copy Markdown
Contributor

Add unit tests for all error types in the cpython package.

Tests cover:

  • ErrPython (including empty message case)
  • ErrTypeConversion
  • ErrOverflow
  • ErrClosed
  • ErrInvalidObject
  • ErrNotFound
  • Compile-time interface assertion for all error types

error.go coverage: 0% → 100%

Copy link
Copy Markdown
Member

@alexpevzner alexpevzner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see review comments

Comment thread cpython/error_test.go Outdated
Comment thread cpython/python.go
@abhishrestha abhishrestha force-pushed the error-tests branch 2 times, most recently from 65b6c93 to 4fffe14 Compare May 5, 2026 16:30
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.

2 participants