Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testutil: Improved trimming when output is too large. #5

Merged
merged 1 commit into from
Dec 15, 2022

Conversation

bwplotka
Copy link
Contributor

Now e.g. Equals will print maximum of 1000 chars for each "exp", "act", "msg" and "diff", instead of 10k overall.

Printing more is still cluttering and impossible to debug by humans.

This allows to at least read beginnings of diff and each act and exp lines.

Signed-off-by: bwplotka [email protected]

Now e.g.  Equals will print maximum of 1000 chars for each "exp", "act", "msg" and "diff", instead of 10k overall.

Printing more is still cluttering and impossible to debug by humans.

This allows to at least read beginnings of diff and each act and exp lines.

Signed-off-by: bwplotka <[email protected]>
Copy link
Collaborator

@saswatamcode saswatamcode left a comment

Choose a reason for hiding this comment

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

Thanks for improving! 💪🏻

@bwplotka bwplotka merged commit ad820b4 into main Dec 15, 2022
@bwplotka bwplotka deleted the testutil-limits branch December 15, 2022 08:05
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.

2 participants