Functions | Variables
tests.unit._signal_client Namespace Reference

Functions

def handle_sigint (unused_signum, unused_frame)
 
def main_streaming (server_target)
 
def main_streaming_with_exception (server_target)
 
def main_unary (server_target)
 
def main_unary_with_exception (server_target)
 

Variables

string _ASSERTION_MESSAGE = "Control flow should never reach here."
 
string _MESSAGE = b'\x00\x00\x00'
 
 action
 
 args = parser.parse_args()
 
 choices
 
 help
 
 parser = argparse.ArgumentParser(description='Signal test client.')
 
 per_process_rpc_future = None
 
string SIGTERM_MESSAGE = "Handling sigterm!"
 
string UNARY_STREAM = "/test/ServerStreaming"
 
string UNARY_UNARY = "/test/Unary"
 

Function Documentation

◆ handle_sigint()

def tests.unit._signal_client.handle_sigint (   unused_signum,
  unused_frame 
)

Definition at line 43 of file _signal_client.py.

◆ main_streaming()

def tests.unit._signal_client.main_streaming (   server_target)
Initiate a streaming RPC to be interrupted by a SIGINT.

Definition at line 64 of file _signal_client.py.

◆ main_streaming_with_exception()

def tests.unit._signal_client.main_streaming_with_exception (   server_target)
Initiate a streaming RPC with a signal handler that will raise.

Definition at line 89 of file _signal_client.py.

◆ main_unary()

def tests.unit._signal_client.main_unary (   server_target)
Initiate a unary RPC to be interrupted by a SIGINT.

Definition at line 52 of file _signal_client.py.

◆ main_unary_with_exception()

def tests.unit._signal_client.main_unary_with_exception (   server_target)
Initiate a unary RPC with a signal handler that will raise.

Definition at line 76 of file _signal_client.py.

Variable Documentation

◆ _ASSERTION_MESSAGE

string tests.unit._signal_client._ASSERTION_MESSAGE = "Control flow should never reach here."
private

Definition at line 33 of file _signal_client.py.

◆ _MESSAGE

string tests.unit._signal_client._MESSAGE = b'\x00\x00\x00'
private

Definition at line 31 of file _signal_client.py.

◆ action

tests.unit._signal_client.action

Definition at line 110 of file _signal_client.py.

◆ args

tests.unit._signal_client.args = parser.parse_args()

Definition at line 114 of file _signal_client.py.

◆ choices

tests.unit._signal_client.choices

Definition at line 107 of file _signal_client.py.

◆ help

tests.unit._signal_client.help

Definition at line 106 of file _signal_client.py.

◆ parser

tests.unit._signal_client.parser = argparse.ArgumentParser(description='Signal test client.')

Definition at line 105 of file _signal_client.py.

◆ per_process_rpc_future

tests.unit._signal_client.per_process_rpc_future = None

Definition at line 40 of file _signal_client.py.

◆ SIGTERM_MESSAGE

string tests.unit._signal_client.SIGTERM_MESSAGE = "Handling sigterm!"

Definition at line 26 of file _signal_client.py.

◆ UNARY_STREAM

string tests.unit._signal_client.UNARY_STREAM = "/test/ServerStreaming"

Definition at line 29 of file _signal_client.py.

◆ UNARY_UNARY

string tests.unit._signal_client.UNARY_UNARY = "/test/Unary"

Definition at line 28 of file _signal_client.py.



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