2021年3月30日星期二

Rust test case match whole nested structs

I have some test cases validating the returned object, which is a deeply nested struct.

Currently I am using match to verify the return struct. However, Vec cannot be matched in struct, so I have to split the code into different parts and it harms readbility.

https://github.com/wangjia184/rholang-rust/blob/main/rholang_parser/tests/pinput.rs

Is there some way to verify the entrie nested struct without losing readbility?

https://stackoverflow.com/questions/66880692/rust-test-case-match-whole-nested-structs March 31, 2021 at 10:05AM

没有评论:

发表评论