Skip to content

Conversation

@harryswift01
Copy link
Contributor

Summary

This PR aims to improve the test coverage of the main.py module by implementing atomic tests for its classes and functions. The goal is to ensure the correctness of logic and numerical computations throughout the module.


Changes

Restructured Testing Order

  • Adopted a class-based structure for test cases, aligning with the format used in other parts of the codebase.
  • Improved readability and maintainability by grouping related tests.

Expanded Unit Tests for Core Functions

  • Added an additional test case to test for the entry point of CodeEntropy, this will simulate a full run through of the CodeEntropy package.

Impact

  • Significantly increases test coverage for main.py, improving confidence in the module’s reliability.
  • This will now mean that the code coverage for the CodeEntropy package is now at 100%

@harryswift01 harryswift01 added this to the 1.0.0 release milestone Jun 23, 2025
@harryswift01 harryswift01 requested a review from jimboid June 23, 2025 11:33
@harryswift01 harryswift01 self-assigned this Jun 23, 2025
Copy link
Member

@jimboid jimboid left a comment

Choose a reason for hiding this comment

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

Code looks like it does all of the things suggested in the PR text.

@harryswift01 harryswift01 merged commit eeb0758 into main Jun 23, 2025
7 checks passed
@harryswift01 harryswift01 deleted the 110-improve-test-coverage-for-main branch June 23, 2025 13:12
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.

Improve Test Coverage for main.py Improve Test Coverage & Organization

3 participants