MCPcopy Create free account
hub / github.com/nodejs/node / __init__

Method __init__

deps/v8/tools/testrunner/objects/testcase.py:94–128  ·  view source on GitHub ↗
(self, suite, path, name)

Source from the content-addressed store, hash-verified

92class TestCase(object):
93
94 def __init__(self, suite, path, name):
95 self.suite = suite
96
97 # Path (pathlib) with the relative test path, e.g. 'test-api/foo'.
98 self.path = Path(path)
99
100 # String with a posix path to identify test in the status file and
101 # at the command line.
102 self.name = name
103
104 # String that identifies subtests.
105 self.subtest_id = None
106
107 # Name of the used testing variant.
108 self.variant = None
109
110 # List of strings, flags specific to this test.
111 self.variant_flags = []
112
113 # Fields used by the test processors.
114 self.origin = None # Test that this test is subtest of.
115 # Processor that created this subtest, initialised to a default value
116 self.processor = DuckProcessor()
117 self.procid = '%s/%s' % (self.suite.name, self.name) # unique id
118 self.keep_output = False # Can output of this test be dropped
119 self._random_seed = None # Overrides test config value if not None
120
121 # Outcomes
122 self._statusfile_outcomes = None
123 self._expected_outcomes = None
124 self._checked_flag_contradictions = False
125 self._statusfile_flags = None
126 self.expected_failure_reason = None
127
128 self._prepare_outcomes()
129
130 def create_subtest(self, processor, subtest_id, variant=None, flags=None,
131 keep_output=False, random_seed=None):

Callers

nothing calls this directly

Calls 2

_prepare_outcomesMethod · 0.95
DuckProcessorClass · 0.85

Tested by

no test coverage detected