-
Notifications
You must be signed in to change notification settings - Fork 129
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
#156: truncate text on the left by default, but make it configurable #157
Conversation
This looks good to me! Could you add a small test case for this too? |
One of the "read this file in, get this file out" kinda tests? |
That is, should it be the style of test in tests/flamegraph.rs, or something else? If the latter, what would it assert? |
Yup, a read-in check-out test seems great for this! |
So I actually have to go and regenerate all the flamegraph SVGs in the integration tests, since they no longer match checked-in output... is there a utility to do that? |
Ah, because you changed the default I suppose. I don't think so, but @jasonrhansen might have something handy? An alternative is to make the test suite continue to run with cropping on the right, and then just add one test that does cropping on the left. |
If you delete the flamegraph SVGs, the tests will recreate them for you. You could do this, then |
Ok, I have:
|
Codecov Report
@@ Coverage Diff @@
## master #157 +/- ##
=========================================
Coverage ? 88.53%
=========================================
Files ? 16
Lines ? 2216
Branches ? 0
=========================================
Hits ? 1962
Misses ? 254
Partials ? 0
Continue to review full report at Codecov.
|
Looks great to me, thanks! |
Fixes #156.
I tested the flag manually, but suggestions for additional automated tests are welcome.