If the spec contains default values why not make a constructor with all the missing fields or implement Default when all fields are covered?
Also lol:
#[test]
fn test_config_load() {
todo!();
}
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
If the spec contains default values why not make a constructor with all the missing fields or implement Default when all fields are covered?
Also lol:
#[test]
fn test_config_load() {
todo!();
}
If the spec contains default values why not make a constructor with all the missing fields or implement
Defaultwhen all fields are covered?
For the first implementation I wanted to keep it simple, I don't exclude that in the future it will change.
Also lol:
Yep, I still need to figure out deep macro testing, for now I use the integration tests and cargo expand. This will absolutely change in the future :)
Thanks for the feedback!