-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add -a, --all flag to garbage command #118
Conversation
And extend tests accordingly Relates to rustwasm#109
} | ||
|
||
/// Set the maximum number of items to display. | ||
pub fn set_max_items(&mut self, max: u32) { | ||
self.max_items = max; | ||
self.all_items = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch here 😸
"json", | ||
"-a" | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job adding these tests as well!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing is the most important ;)
LGTM! Nice work @userzimmermann! 😸 I see you've also started out on #120, that's awesome! Unless @fitzgen has any other input, I think this can be merged. |
If it gets your approval stamp, that is all I need to know :) |
Thx for nice feedback @data-pup @fitzgen! And approving, merging, etc :) Just right after you merged, it came to my mind that the |
And here it is: The first
--all
flag according to #109 :)I also added some new
twiggy garbage
tests for the new flag, based onfixtures/wee_alloc.wasm
, sincefixtures/garbage.wasm
unfortunately only produces 9 items, but-n <max_items>
defaults to10
:D