Skip to content

Add thorough unit tests for error truncation#271

Open
nadahalli wants to merge 1 commit intoadd-workflow-logs-commandfrom
tejaswi/truncation-tests
Open

Add thorough unit tests for error truncation#271
nadahalli wants to merge 1 commit intoadd-workflow-logs-commandfrom
tejaswi/truncation-tests

Conversation

@nadahalli
Copy link
Contributor

Summary

  • Extracts inline truncation logic into a named truncateError function.
  • Adds unit tests verifying: head preservation, tail preservation, middle content removal, ellipsis presence, output length bounds, and that tail is ~40% of the original.

Follow-up to #263.

Extracts truncateError into a named function and adds tests verifying:
head preservation, tail preservation, middle content removal,
ellipsis presence, output length bounds, and tail ~40% proportion.
@nadahalli nadahalli requested a review from a team as a code owner February 18, 2026 15:55
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.

1 participant

Comments