|
webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Classes | |
| class | _ParameterizedTestIter |
| class | ParameterizedTestCase |
| class | TestGeneratorMetaclass |
Functions | |
| def | Parameters (testcases) |
| def | NamedParameters (testcases) |
| def | CoopParameterizedTestCase (other_base_class) |
Variables | |
| ADDR_RE = re.compile(r'<([a-zA-Z0-9_\-\.]+) object at 0x[a-fA-F0-9]+>') | |
| def google.protobuf.internal._parameterized.CoopParameterizedTestCase | ( | other_base_class | ) |
Returns a new base class with a cooperative metaclass base.
This enables the ParameterizedTestCase to be used in combination
with other base classes that have custom metaclasses, such as
mox.MoxTestBase.
Only works with metaclasses that do not override type.__new__.
Example:
import google3
import mox
from google3.testing.pybase import parameterized
class ExampleTest(parameterized.CoopParameterizedTestCase(mox.MoxTestBase)):
...
Args:
other_base_class: (class) A test case base class.
Returns:
A new class object.
| def google.protobuf.internal._parameterized.NamedParameters | ( | testcases | ) |
A decorator for creating parameterized tests.
See the module docstring for a usage example. The first element of
each parameter tuple should be a string and will be appended to the
name of the test method.
Args:
*testcases: Parameters for the decorated method, either a single
iterable, or a list of tuples.
Returns:
A test generator to be handled by TestGeneratorMetaclass.
| def google.protobuf.internal._parameterized.Parameters | ( | testcases | ) |
A decorator for creating parameterized tests.
See the module docstring for a usage example.
Args:
*testcases: Parameters for the decorated method, either a single
iterable, or a list of tuples/dicts/objects (for tests
with only one argument).
Returns:
A test generator to be handled by TestGeneratorMetaclass.
1.8.13