chore: Add test to check FILE_DESCRIPTOR_SET is valid (#1217)
This commit is contained in:
@@ -22,6 +22,17 @@ pub mod proto {
|
||||
include!("generated/grpc.reflection.v1alpha.rs");
|
||||
|
||||
pub const FILE_DESCRIPTOR_SET: &[u8] = include_bytes!("generated/reflection_v1alpha1.bin");
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::FILE_DESCRIPTOR_SET;
|
||||
use prost::Message as _;
|
||||
|
||||
#[test]
|
||||
fn file_descriptor_set_is_valid() {
|
||||
prost_types::FileDescriptorSet::decode(FILE_DESCRIPTOR_SET).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Implementation of the server component of gRPC Server Reflection.
|
||||
|
||||
Reference in New Issue
Block a user