Functions | |
| def | ExpectAllFieldsAndExtensionsInOrder (serialized) |
| def | ExpectAllFieldsSet (test_case, message) |
| def | GoldenFile (filename) |
| def | SetAllExtensions (message) |
| def | SetAllFields (message) |
| def | SetAllFieldsAndExtensions (message) |
| def | SetAllNonLazyFields (message) |
| def | SetAllPackedExtensions (message) |
| def | SetAllPackedFields (message) |
| def | SetAllUnpackedFields (message) |
Variables | |
| string | __author__ = 'robinson@google.com (Will Robinson)' |
| def tests.google.protobuf.internal.test_util.ExpectAllFieldsAndExtensionsInOrder | ( | serialized | ) |
Ensures that serialized is the serialization we expect for a message filled with SetAllFieldsAndExtensions(). (Specifically, ensures that the serialization is in canonical, tag-number order).
Definition at line 337 of file compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.
| def tests.google.protobuf.internal.test_util.ExpectAllFieldsSet | ( | test_case, | |
| message | |||
| ) |
Check all fields for correct values have after Set*Fields() is called.
Definition at line 367 of file compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.
| def tests.google.protobuf.internal.test_util.GoldenFile | ( | filename | ) |
Finds the given golden file and returns a file object representing it.
Definition at line 564 of file compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.
| def tests.google.protobuf.internal.test_util.SetAllExtensions | ( | message | ) |
Sets every extension in the message to a unique value. Args: message: A unittest_pb2.TestAllExtensions instance.
Definition at line 187 of file compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.
| def tests.google.protobuf.internal.test_util.SetAllFields | ( | message | ) |
Definition at line 182 of file compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.
| def tests.google.protobuf.internal.test_util.SetAllFieldsAndExtensions | ( | message | ) |
Sets every field and extension in the message to a unique value. Args: message: A unittest_pb2.TestAllExtensions message.
Definition at line 324 of file compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.
| def tests.google.protobuf.internal.test_util.SetAllNonLazyFields | ( | message | ) |
Sets every non-lazy field in the message to a unique value. Args: message: A unittest_pb2.TestAllTypes instance.
Definition at line 45 of file compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.
| def tests.google.protobuf.internal.test_util.SetAllPackedExtensions | ( | message | ) |
Sets every extension in the message to a unique value. Args: message: A unittest_pb2.TestPackedExtensions instance.
Definition at line 605 of file compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.
| def tests.google.protobuf.internal.test_util.SetAllPackedFields | ( | message | ) |
Sets every field in the message to a unique value. Args: message: A unittest_pb2.TestPackedTypes instance.
Definition at line 582 of file compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.
| def tests.google.protobuf.internal.test_util.SetAllUnpackedFields | ( | message | ) |
Sets every field in the message to a unique value. Args: message: A unittest_pb2.TestUnpackedTypes instance.
Definition at line 631 of file compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.
|
private |
Definition at line 37 of file compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.