Functions | Variables
tests.google.protobuf.internal.test_util Namespace Reference

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)'
 

Function Documentation

◆ ExpectAllFieldsAndExtensionsInOrder()

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 bloaty/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.

◆ ExpectAllFieldsSet()

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 bloaty/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.

◆ GoldenFile()

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 bloaty/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.

◆ SetAllExtensions()

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 bloaty/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.

◆ SetAllFields()

def tests.google.protobuf.internal.test_util.SetAllFields (   message)

◆ SetAllFieldsAndExtensions()

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 bloaty/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.

◆ SetAllNonLazyFields()

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 bloaty/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.

◆ SetAllPackedExtensions()

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 bloaty/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.

◆ SetAllPackedFields()

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 bloaty/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.

◆ SetAllUnpackedFields()

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 bloaty/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py.

Variable Documentation

◆ __author__

string tests.google.protobuf.internal.test_util.__author__ = 'robinson@google.com (Will Robinson)'
private


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:52