grpc.framework.common package

Submodules

grpc.framework.common.cardinality module

Defines an enum for classifying RPC methods by streaming semantics.

class grpc.framework.common.cardinality.Cardinality[source]

Bases: enum.Enum

Describes the streaming semantics of an RPC method.

grpc.framework.common.style module

Defines an enum for classifying RPC methods by control flow semantics.

class grpc.framework.common.style.Service[source]

Bases: enum.Enum

Describes the control flow style of RPC method implementation.

grpc.framework.common.test_constants module

Constants shared among tests throughout RPC Framework.

grpc.framework.common.test_control module

Code for instructing systems under test to block or fail.

class grpc.framework.common.test_control.Control[source]

Bases: object

An object that accepts program control from a system under test.

Systems under test passed a Control should call its control() method frequently during execution. The control() method may block, raise an exception, or do nothing, all according to the enclosing test’s desire for the system under test to simulate hanging, failing, or functioning.

control()[source]

Potentially does anything.

class grpc.framework.common.test_control.PauseFailControl[source]

Bases: grpc.framework.common.test_control.Control

A Control that can be used to pause or fail code under control.

control()[source]
fail(*args, **kwds)[source]

Fails code under control while controlling code is in context.

pause(*args, **kwds)[source]

Pauses code under control while controlling code is in context.

grpc.framework.common.test_coverage module

Governs coverage for tests of RPCs throughout RPC Framework.

class grpc.framework.common.test_coverage.Coverage[source]

Bases: object

Specification of test coverage.

testCancelledStreamRequestStreamResponse()[source]
testCancelledStreamRequestUnaryResponse()[source]
testCancelledUnaryRequestStreamResponse()[source]
testCancelledUnaryRequestUnaryResponse()[source]
testExpiredStreamRequestStreamResponse()[source]
testExpiredStreamRequestUnaryResponse()[source]
testExpiredUnaryRequestStreamResponse()[source]
testExpiredUnaryRequestUnaryResponse()[source]
testFailedStreamRequestStreamResponse()[source]
testFailedStreamRequestUnaryResponse()[source]
testFailedUnaryRequestStreamResponse()[source]
testFailedUnaryRequestUnaryResponse()[source]
testParallelInvocations()[source]
testSequentialInvocations()[source]
testSuccessfulStreamRequestStreamResponse()[source]
testSuccessfulStreamRequestUnaryResponse()[source]
testSuccessfulUnaryRequestStreamResponse()[source]
testSuccessfulUnaryRequestUnaryResponse()[source]
testWaitingForSomeButNotAllParallelInvocations()[source]

Module contents