I've got a .proto file with a few messages which looks something like this,
Message messageA{
required double value =1;
//more fields
}
Message messageB{
required int32 value =1;
//more fields
}
I'd like to verify that each message added to the file will have a "value" field. If it doesn't, the proper result will be a failing unit test.
Is there a better way to do this without hoping the next programmer will add messages instances to a test?
Thanks.