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

tests: add names to dump test cases #5

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

dwlnetnl
Copy link

To make tests more approachable, I've changed the Dump cases into sub-tests with the type as test name.

I don't have any problem with updating the Formatter tests also in this style.

thockin and others added 24 commits July 17, 2022 09:13
Just a nit-picky typo fix.
Can't see where it would still be used.
This forces the writing of commas in arrays/slices/maps. Useful in tests
to avoid false positives when diffing.
DisableUnexported specifies whether to disable the unexported fields of struct.
This is useful for debugging APIs.
This carries the opinionated "best" config for clean dumping.
This dumps lists in a more JSON-ish style
Print empty lists, maps and structs in short `[]` and `{}` form.
@dwlnetnl
Copy link
Author

It also adds benchmarks for Dump, as sub-benchmarks.

@thockin
Copy link
Owner

thockin commented May 19, 2023

Interesting - I wasn't really maintaining this repo actively... I didn't realize people were using it.

@thockin
Copy link
Owner

thockin commented May 19, 2023

I will have to make some time to figure out if I intend to support this or not. Will circle back ASAP

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.

8 participants