Skip to content

fix(table): guard against division by zero during AutoMerge width calculation - #432

Open
AdamMagued wants to merge 2 commits into
jedib0t:mainfrom
AdamMagued:fix-issue-426
Open

AdamMagued wants to merge 2 commits into
jedib0t:mainfrom
AdamMagued:fix-issue-426

Conversation

@AdamMagued

Copy link
Copy Markdown

Fixes #426

Summary

  • Guarded column width distribution against division by zero in AutoMerge tables.
  • Added regression unit tests covering merged cells exceeding base column counts.

Verified via container sandbox test suite.

@coveralls

coveralls commented Oct 9, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 39322571715

Coverage decreased (-0.08%) to 99.923%

Details

  • Coverage decreased (-0.08%) from the base build.
  • Patch coverage: 4 uncovered changes across 1 file (57 of 61 lines covered, 93.44%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
table/render_init.go 61 57 93.44%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 5180
Covered Lines: 5176
Line Coverage: 99.92%
Coverage Strength: 1.21 hits per line

💛 - Coveralls

@sonarqubecloud

Copy link
Copy Markdown

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.

Render panics with integer divide by zero when an AutoMerge cell is wider than its columns

2 participants