Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
339 B
12 lines
339 B
4 months ago
|
use googletest::gtest;
|
||
|
use protobuf::{__internal, __runtime};
|
||
|
|
||
|
#[gtest]
|
||
|
#[allow(clippy::unit_cmp)]
|
||
|
fn test_no_internal_access() {
|
||
|
// This test is to ensure that the `__internal` and `__runtime` mods are
|
||
|
// 'blocked' by instead being a unit type instead of a module.
|
||
|
assert_eq!(__internal, ());
|
||
|
assert_eq!(__runtime, ());
|
||
|
}
|