-
Notifications
You must be signed in to change notification settings - Fork 56
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
Dump(cuecontext.New()): Litter does not, spew does #52
Comments
Here is the test module
This is the output
|
litter.Options{Compact: false, HidePrivateFields: false, HideZeroValues: false}.Dump(ctx) by default, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
sanity-io
litter.Dump(ctx)
fails to dump a moderately complex structcuecontext.New()
where spew.Dump(ctx) dumps over 100 lines.Both dumpers print a reasonable representation of a simple demo struct
To Reproduce
Run the
main.go
shown in the next comment and observe results (also reproduced below)Expected behavior
A detailed dump of
ctx
bylitter
, equivalent to that fromspew
Observed behavior
From litter.Dump(ctx) I get just a single line:
Which versions of Sanity are you using?
v1.5.5
@atombender atombender tagged this Apr 28, 2022
What operating system are you using?
try-litter % sw_vers
ProductName: macOS
ProductVersion: 13.6.1
BuildVersion: 22G313
Which versions of Node.js / npm are you running?
try-litter % npm -v && node -v
9.8.0
v20.5.1
Additional context
Security issue?
No
The text was updated successfully, but these errors were encountered: