Classes | Functions | Variables
tests_aio.unit.compression_test Namespace Reference

Classes

class  _GenericHandler
 
class  TestCompression
 

Functions

def _start_test_server (options=None)
 
def _test_disable_compression_stream (unused_request_iterator, context)
 
def _test_disable_compression_unary (request, context)
 
def _test_set_compression (unused_request_iterator, context)
 
def _test_unary_unary (unused_request, unused_context)
 

Variables

tuple _DEFLATE_DISABLED_CHANNEL_ARGUMENT
 
tuple _GZIP_CHANNEL_ARGUMENT = ('grpc.default_compression_algorithm', 2)
 
tuple _GZIP_DISABLED_CHANNEL_ARGUMENT
 
string _REQUEST = b'\x01' * 100
 
string _RESPONSE = b'\x02' * 100
 
dictionary _ROUTING_TABLE
 
string _TEST_DISABLE_COMPRESSION_STREAM = '/test/TestDisableCompressionStream'
 
string _TEST_DISABLE_COMPRESSION_UNARY = '/test/TestDisableCompressionUnary'
 
string _TEST_SET_COMPRESSION = '/test/TestSetCompression'
 
string _TEST_UNARY_UNARY = '/test/TestUnaryUnary'
 
 level
 
 verbosity
 

Function Documentation

◆ _start_test_server()

def tests_aio.unit.compression_test._start_test_server (   options = None)
private

Definition at line 98 of file compression_test.py.

◆ _test_disable_compression_stream()

def tests_aio.unit.compression_test._test_disable_compression_stream (   unused_request_iterator,
  context 
)
private

Definition at line 71 of file compression_test.py.

◆ _test_disable_compression_unary()

def tests_aio.unit.compression_test._test_disable_compression_unary (   request,
  context 
)
private

Definition at line 64 of file compression_test.py.

◆ _test_set_compression()

def tests_aio.unit.compression_test._test_set_compression (   unused_request_iterator,
  context 
)
private

Definition at line 47 of file compression_test.py.

◆ _test_unary_unary()

def tests_aio.unit.compression_test._test_unary_unary (   unused_request,
  unused_context 
)
private

Definition at line 43 of file compression_test.py.

Variable Documentation

◆ _DEFLATE_DISABLED_CHANNEL_ARGUMENT

tuple tests_aio.unit.compression_test._DEFLATE_DISABLED_CHANNEL_ARGUMENT
private
Initial value:
1 = (
2  'grpc.compression_enabled_algorithms_bitset', 5)

Definition at line 31 of file compression_test.py.

◆ _GZIP_CHANNEL_ARGUMENT

tuple tests_aio.unit.compression_test._GZIP_CHANNEL_ARGUMENT = ('grpc.default_compression_algorithm', 2)
private

Definition at line 28 of file compression_test.py.

◆ _GZIP_DISABLED_CHANNEL_ARGUMENT

tuple tests_aio.unit.compression_test._GZIP_DISABLED_CHANNEL_ARGUMENT
private
Initial value:
1 = ('grpc.compression_enabled_algorithms_bitset',
2  3)

Definition at line 29 of file compression_test.py.

◆ _REQUEST

string tests_aio.unit.compression_test._REQUEST = b'\x01' * 100
private

Definition at line 39 of file compression_test.py.

◆ _RESPONSE

string tests_aio.unit.compression_test._RESPONSE = b'\x02' * 100
private

Definition at line 40 of file compression_test.py.

◆ _ROUTING_TABLE

dictionary tests_aio.unit.compression_test._ROUTING_TABLE
private
Initial value:
1 = {
2  _TEST_UNARY_UNARY:
3  grpc.unary_unary_rpc_method_handler(_test_unary_unary),
4  _TEST_SET_COMPRESSION:
5  grpc.stream_stream_rpc_method_handler(_test_set_compression),
6  _TEST_DISABLE_COMPRESSION_UNARY:
7  grpc.unary_unary_rpc_method_handler(_test_disable_compression_unary),
8  _TEST_DISABLE_COMPRESSION_STREAM:
9  grpc.stream_stream_rpc_method_handler(_test_disable_compression_stream),
10 }

Definition at line 80 of file compression_test.py.

◆ _TEST_DISABLE_COMPRESSION_STREAM

string tests_aio.unit.compression_test._TEST_DISABLE_COMPRESSION_STREAM = '/test/TestDisableCompressionStream'
private

Definition at line 37 of file compression_test.py.

◆ _TEST_DISABLE_COMPRESSION_UNARY

string tests_aio.unit.compression_test._TEST_DISABLE_COMPRESSION_UNARY = '/test/TestDisableCompressionUnary'
private

Definition at line 36 of file compression_test.py.

◆ _TEST_SET_COMPRESSION

string tests_aio.unit.compression_test._TEST_SET_COMPRESSION = '/test/TestSetCompression'
private

Definition at line 35 of file compression_test.py.

◆ _TEST_UNARY_UNARY

string tests_aio.unit.compression_test._TEST_UNARY_UNARY = '/test/TestUnaryUnary'
private

Definition at line 34 of file compression_test.py.

◆ level

tests_aio.unit.compression_test.level

Definition at line 195 of file compression_test.py.

◆ verbosity

tests_aio.unit.compression_test.verbosity

Definition at line 196 of file compression_test.py.

grpc.unary_unary_rpc_method_handler
def unary_unary_rpc_method_handler(behavior, request_deserializer=None, response_serializer=None)
Definition: src/python/grpcio/grpc/__init__.py:1510
grpc.stream_stream_rpc_method_handler
def stream_stream_rpc_method_handler(behavior, request_deserializer=None, response_serializer=None)
Definition: src/python/grpcio/grpc/__init__.py:1570


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