Skip to content

test(unit): add unit tests for untested source files#609

Merged
Chemaclass merged 2 commits intomainfrom
test/improve-test-coverage
Mar 14, 2026
Merged

test(unit): add unit tests for untested source files#609
Chemaclass merged 2 commits intomainfrom
test/improve-test-coverage

Conversation

@Chemaclass
Copy link
Member

@Chemaclass Chemaclass commented Mar 14, 2026

🤔 Background

Several core source files had zero unit tests, leaving gaps in the test suite coverage.

💡 Changes

  • Add 6 new unit test files covering env.sh, math.sh, colors.sh, test_title.sh, console_header.sh, and doc.sh
  • Use data providers to efficiently test all 21 boolean env flag checkers in both true/false states
  • Add dedicated tests for special-case functions like find_terminal_width fallback, active_internet_connection network opt-out, and math::calculate fallback paths
  • Total: 71 new tests bringing the suite from ~847 to 918

@github-actions
Copy link
Contributor

✅ Contributor Report

User: @Chemaclass
Status: Trusted contributor (whitelisted)

This user is on the trusted contributors list and was automatically approved.

@Chemaclass Chemaclass merged commit cea7daa into main Mar 14, 2026
26 checks passed
@Chemaclass Chemaclass deleted the test/improve-test-coverage branch March 14, 2026 22:26
@Chemaclass Chemaclass self-assigned this Mar 14, 2026
@Chemaclass Chemaclass added the pure testing Pure testing related label Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pure testing Pure testing related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant