MCPcopy Create free account
hub / github.com/apache/tvm / pytest_generate_tests

Function pytest_generate_tests

python/tvm/testing/plugin.py:70–79  ·  view source on GitHub ↗

Called once per unit test, modifies/parametrizes it as needed.

(metafunc)

Source from the content-addressed store, hash-verified

68
69
70def pytest_generate_tests(metafunc):
71 """Called once per unit test, modifies/parametrizes it as needed."""
72 _parametrize_correlated_parameters(metafunc)
73 _auto_parametrize_target(metafunc)
74 _add_target_specific_marks(metafunc)
75
76 # Process gtest arguments
77 option_value = metafunc.config.option.gtest_args
78 if "gtest_args" in metafunc.fixturenames and option_value is not None:
79 metafunc.parametrize("gtest_args", [option_value])
80
81
82def pytest_collection_modifyitems(config, items):

Callers

nothing calls this directly

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…