parent
5140c02cf7
commit
f78a589481
5 changed files with 73 additions and 52 deletions
@ -1,17 +0,0 @@ |
||||
#region Copyright notice and license |
||||
// Protocol Buffers - Google's data interchange format |
||||
// Copyright 2008 Google Inc. All rights reserved. |
||||
// |
||||
// Use of this source code is governed by a BSD-style |
||||
// license that can be found in the LICENSE file or at |
||||
// https://developers.google.com/open-source/licenses/bsd |
||||
#endregion |
||||
|
||||
namespace Google.Protobuf.Reflection; |
||||
|
||||
internal sealed partial class FeatureSetDescriptor |
||||
{ |
||||
// Canonical serialized form of the edition defaults, generated by embed_edition_defaults. |
||||
private const string DefaultsBase64 = |
||||
"ChMYhAciACoMCAEQAhgCIAMoATACChMY5wciACoMCAIQARgBIAIoATABChMY6AciDAgBEAEYASACKAEwASoAIOYHKOgH"; |
||||
} |
@ -0,0 +1,11 @@ |
||||
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, ()); |
||||
} |
Loading…
Reference in new issue