Classes | Functions | Variables
tests.unit._rpc_test_helpers Namespace Reference

Classes

class  _GenericHandler
 
class  _Handler
 
class  _MethodHandler
 
class  BaseRPCTest
 
class  Callback
 

Functions

def stream_stream_multi_callable (channel)
 
def stream_stream_non_blocking_multi_callable (channel)
 
def stream_unary_multi_callable (channel)
 
def unary_stream_multi_callable (channel)
 
def unary_stream_non_blocking_multi_callable (channel)
 
def unary_unary_multi_callable (channel)
 

Variables

 _DESERIALIZE_REQUEST = lambda bytestring: bytestring[len(bytestring) // 2:]
 
 _DESERIALIZE_RESPONSE = lambda bytestring: bytestring[:len(bytestring) // 3]
 
int _SERIALIZE_REQUEST = lambda bytestring: bytestring * 2
 
int _SERIALIZE_RESPONSE = lambda bytestring: bytestring * 3
 
string _STREAM_STREAM = '/test/StreamStream'
 
string _STREAM_STREAM_NON_BLOCKING = '/test/StreamStreamNonBlocking'
 
string _STREAM_UNARY = '/test/StreamUnary'
 
string _UNARY_STREAM = '/test/UnaryStream'
 
string _UNARY_STREAM_NON_BLOCKING = '/test/UnaryStreamNonBlocking'
 
string _UNARY_UNARY = '/test/UnaryUnary'
 
 TIMEOUT_SHORT = datetime.timedelta(seconds=4).total_seconds()
 

Function Documentation

◆ stream_stream_multi_callable()

def tests.unit._rpc_test_helpers.stream_stream_multi_callable (   channel)

Definition at line 224 of file _rpc_test_helpers.py.

◆ stream_stream_non_blocking_multi_callable()

def tests.unit._rpc_test_helpers.stream_stream_non_blocking_multi_callable (   channel)

Definition at line 228 of file _rpc_test_helpers.py.

◆ stream_unary_multi_callable()

def tests.unit._rpc_test_helpers.stream_unary_multi_callable (   channel)

Definition at line 218 of file _rpc_test_helpers.py.

◆ unary_stream_multi_callable()

def tests.unit._rpc_test_helpers.unary_stream_multi_callable (   channel)

Definition at line 206 of file _rpc_test_helpers.py.

◆ unary_stream_non_blocking_multi_callable()

def tests.unit._rpc_test_helpers.unary_stream_non_blocking_multi_callable (   channel)

Definition at line 212 of file _rpc_test_helpers.py.

◆ unary_unary_multi_callable()

def tests.unit._rpc_test_helpers.unary_unary_multi_callable (   channel)

Definition at line 202 of file _rpc_test_helpers.py.

Variable Documentation

◆ _DESERIALIZE_REQUEST

tests.unit._rpc_test_helpers._DESERIALIZE_REQUEST = lambda bytestring: bytestring[len(bytestring) // 2:]
private

Definition at line 28 of file _rpc_test_helpers.py.

◆ _DESERIALIZE_RESPONSE

tests.unit._rpc_test_helpers._DESERIALIZE_RESPONSE = lambda bytestring: bytestring[:len(bytestring) // 3]
private

Definition at line 30 of file _rpc_test_helpers.py.

◆ _SERIALIZE_REQUEST

int tests.unit._rpc_test_helpers._SERIALIZE_REQUEST = lambda bytestring: bytestring * 2
private

Definition at line 27 of file _rpc_test_helpers.py.

◆ _SERIALIZE_RESPONSE

int tests.unit._rpc_test_helpers._SERIALIZE_RESPONSE = lambda bytestring: bytestring * 3
private

Definition at line 29 of file _rpc_test_helpers.py.

◆ _STREAM_STREAM

string tests.unit._rpc_test_helpers._STREAM_STREAM = '/test/StreamStream'
private

Definition at line 36 of file _rpc_test_helpers.py.

◆ _STREAM_STREAM_NON_BLOCKING

string tests.unit._rpc_test_helpers._STREAM_STREAM_NON_BLOCKING = '/test/StreamStreamNonBlocking'
private

Definition at line 37 of file _rpc_test_helpers.py.

◆ _STREAM_UNARY

string tests.unit._rpc_test_helpers._STREAM_UNARY = '/test/StreamUnary'
private

Definition at line 35 of file _rpc_test_helpers.py.

◆ _UNARY_STREAM

string tests.unit._rpc_test_helpers._UNARY_STREAM = '/test/UnaryStream'
private

Definition at line 33 of file _rpc_test_helpers.py.

◆ _UNARY_STREAM_NON_BLOCKING

string tests.unit._rpc_test_helpers._UNARY_STREAM_NON_BLOCKING = '/test/UnaryStreamNonBlocking'
private

Definition at line 34 of file _rpc_test_helpers.py.

◆ _UNARY_UNARY

string tests.unit._rpc_test_helpers._UNARY_UNARY = '/test/UnaryUnary'
private

Definition at line 32 of file _rpc_test_helpers.py.

◆ TIMEOUT_SHORT

tests.unit._rpc_test_helpers.TIMEOUT_SHORT = datetime.timedelta(seconds=4).total_seconds()

Definition at line 39 of file _rpc_test_helpers.py.



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