test_coverage.py
Go to the documentation of this file.
1 # Copyright 2015 gRPC authors.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 """Governs coverage for tests of RPCs throughout RPC Framework."""
15 
16 import abc
17 
18 import six
19 
20 # This code is designed for use with the unittest module.
21 # pylint: disable=invalid-name
22 
23 
24 class Coverage(six.with_metaclass(abc.ABCMeta)):
25  """Specification of test coverage."""
26 
27  @abc.abstractmethod
29  raise NotImplementedError()
30 
31  @abc.abstractmethod
33  raise NotImplementedError()
34 
35  @abc.abstractmethod
37  raise NotImplementedError()
38 
39  @abc.abstractmethod
41  raise NotImplementedError()
42 
43  @abc.abstractmethod
45  raise NotImplementedError()
46 
47  @abc.abstractmethod
49  raise NotImplementedError()
50 
51  @abc.abstractmethod
53  raise NotImplementedError()
54 
55  @abc.abstractmethod
57  raise NotImplementedError()
58 
59  @abc.abstractmethod
61  raise NotImplementedError()
62 
63  @abc.abstractmethod
65  raise NotImplementedError()
66 
67  @abc.abstractmethod
69  raise NotImplementedError()
70 
71  @abc.abstractmethod
73  raise NotImplementedError()
74 
75  @abc.abstractmethod
77  raise NotImplementedError()
78 
79  @abc.abstractmethod
81  raise NotImplementedError()
82 
83  @abc.abstractmethod
85  raise NotImplementedError()
86 
87  @abc.abstractmethod
89  raise NotImplementedError()
90 
91  @abc.abstractmethod
93  raise NotImplementedError()
94 
95  @abc.abstractmethod
97  raise NotImplementedError()
98 
99  @abc.abstractmethod
101  raise NotImplementedError()
tests.unit.framework.common.test_coverage.Coverage.testSuccessfulUnaryRequestStreamResponse
def testSuccessfulUnaryRequestStreamResponse(self)
Definition: test_coverage.py:32
tests.unit.framework.common.test_coverage.Coverage.testSuccessfulStreamRequestUnaryResponse
def testSuccessfulStreamRequestUnaryResponse(self)
Definition: test_coverage.py:36
tests.unit.framework.common.test_coverage.Coverage.testFailedUnaryRequestStreamResponse
def testFailedUnaryRequestStreamResponse(self)
Definition: test_coverage.py:92
tests.unit.framework.common.test_coverage.Coverage.testCancelledUnaryRequestUnaryResponse
def testCancelledUnaryRequestUnaryResponse(self)
Definition: test_coverage.py:56
tests.unit.framework.common.test_coverage.Coverage.testSequentialInvocations
def testSequentialInvocations(self)
Definition: test_coverage.py:44
tests.unit.framework.common.test_coverage.Coverage.testParallelInvocations
def testParallelInvocations(self)
Definition: test_coverage.py:48
tests.unit.framework.common.test_coverage.Coverage
Definition: test_coverage.py:24
tests.unit.framework.common.test_coverage.Coverage.testExpiredStreamRequestUnaryResponse
def testExpiredStreamRequestUnaryResponse(self)
Definition: test_coverage.py:80
tests.unit.framework.common.test_coverage.Coverage.testCancelledUnaryRequestStreamResponse
def testCancelledUnaryRequestStreamResponse(self)
Definition: test_coverage.py:60
tests.unit.framework.common.test_coverage.Coverage.testExpiredUnaryRequestUnaryResponse
def testExpiredUnaryRequestUnaryResponse(self)
Definition: test_coverage.py:72
tests.unit.framework.common.test_coverage.Coverage.testCancelledStreamRequestUnaryResponse
def testCancelledStreamRequestUnaryResponse(self)
Definition: test_coverage.py:64
tests.unit.framework.common.test_coverage.Coverage.testSuccessfulUnaryRequestUnaryResponse
def testSuccessfulUnaryRequestUnaryResponse(self)
Definition: test_coverage.py:28
tests.unit.framework.common.test_coverage.Coverage.testExpiredStreamRequestStreamResponse
def testExpiredStreamRequestStreamResponse(self)
Definition: test_coverage.py:84
tests.unit.framework.common.test_coverage.Coverage.testFailedStreamRequestUnaryResponse
def testFailedStreamRequestUnaryResponse(self)
Definition: test_coverage.py:96
tests.unit.framework.common.test_coverage.Coverage.testFailedStreamRequestStreamResponse
def testFailedStreamRequestStreamResponse(self)
Definition: test_coverage.py:100
tests.unit.framework.common.test_coverage.Coverage.testExpiredUnaryRequestStreamResponse
def testExpiredUnaryRequestStreamResponse(self)
Definition: test_coverage.py:76
tests.unit.framework.common.test_coverage.Coverage.testSuccessfulStreamRequestStreamResponse
def testSuccessfulStreamRequestStreamResponse(self)
Definition: test_coverage.py:40
tests.unit.framework.common.test_coverage.Coverage.testFailedUnaryRequestUnaryResponse
def testFailedUnaryRequestUnaryResponse(self)
Definition: test_coverage.py:88
tests.unit.framework.common.test_coverage.Coverage.testCancelledStreamRequestStreamResponse
def testCancelledStreamRequestStreamResponse(self)
Definition: test_coverage.py:68
tests.unit.framework.common.test_coverage.Coverage.testWaitingForSomeButNotAllParallelInvocations
def testWaitingForSomeButNotAllParallelInvocations(self)
Definition: test_coverage.py:52


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:31