Skip to content

Add thorough unit tests for error truncation - #271

Closed
nadahalli wants to merge 1 commit into
add-workflow-logs-commandfrom
tejaswi/truncation-tests
Closed

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

Conversation

@nadahalli

Copy link
Copy Markdown
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
@nadahalli nadahalli closed this Jul 2, 2026
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