Conversation
|
Dramatically it says "Files changed 537", but 531 of these are in the |
|
wahou, impressive :) Instead of creating files, could you please create temporary files in the tests? |
|
The virtual memory system is now not created during test-run, instead of putting 500+ files into source control. Let me know if you want me to rebase on main and squash, so the files are not in history. Alternatively if you squash when merging. |
cakebaker
left a comment
There was a problem hiding this comment.
Impressive PR, kudos :)
|
Thank you both @cakebaker and @sylvestre for the reviews. I've removed the un-necessary allow(dead_code) traits, good catch. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #216 +/- ##
===========================
===========================
☔ View full report in Codecov by Sentry. |
|
Thanks for your PR! |
Implemented all options from the original
lsmem, and added extensive tests to catch most general scenarios. Unexpected edge-cases errupted when combinding certain options, e.g."size"not being printed as Number when running with-J -b.Help
cargo run --quiet lsmem -hUsage
cargo run --quiet lsmemcargo run --quiet lsmem -J -b{ "memory": [ { "range": "0x0000000000000000-0x0000000037ffffff", "size": 939524096, "state": "online", "removable": true, "block": "0-6" },{ "range": "0x0000000100000000-0x00000004afffffff", "size": 15837691904, "state": "online", "removable": true, "block": "32-149" } ] }Impact
Removed dependency
tabled, as it brought more styling headache than value provided. The library is too rigid to conform with the exact output of util-linux'slsmem. It was way easier to use space-padded printf/formatf statements than the library.Added feature
preserve_ordertoserde_json, in order to serialize objects in the same order as they were created.Fixes #21