Closed ronanM closed 4 years ago
Hi!
I didn't know proptest, this seems nice. From what I understand, it will test multiple scenarios based on the format you give and will change parts of it each time?
but I don't understood the device_id logic
I may be mistaken but each makair device will have its own ID which is given in the device_id field. You can find more information in this issue: https://github.com/makers-for-life/makair/issues/120
I'll let @dsferruzza rule on this one but it seems good for me (maybe just remove the commented // println!("{:?}",&msg);
)
@ronanM I just noticed that clippy rises several warnings; could you have a look?
I think you just need to have clippy installed and run cargo clippy --all-targets --all-features
.
I think that all TelemetryMessage
messages are tested.
Thanks @ronanM!
I have added
proptest
for parsingBootMessage
(but I don't understood thedevice_id
logic).If you found that useful, i could continue with other messages.