MCPcopy Index your code
hub / github.com/cpplint/cpplint / run_around_tests

Function run_around_tests

cpplint_unittest.py:7226–7237  ·  view source on GitHub ↗
(pytestconfig: pytest.Config)

Source from the content-addressed store, hash-verified

7224
7225@pytest.fixture(autouse=True, scope="session")
7226def run_around_tests(pytestconfig: pytest.Config):
7227 setUp()
7228 yield
7229 # We don't want to run the VerifyAllCategoriesAreSeen() test unless
7230 # we're running the full test suite: if we only run one test,
7231 # obviously we're not going to see all the error categories. So we
7232 # only run VerifyAllCategoriesAreSeen() when we don't filter for
7233 # specific tests.
7234 if pytestconfig.getoption("-k", default=None) in {None, ""} and not any(
7235 "::" in arg for arg in pytestconfig.args
7236 ):
7237 ErrorCollector(None).VerifyAllCategoriesAreSeen()
7238
7239
7240if __name__ == "__main__":

Callers

nothing calls this directly

Calls 3

setUpFunction · 0.85
ErrorCollectorClass · 0.85

Tested by

no test coverage detected