Searched refs:TestCase (Results 1 - 25 of 31) sorted by relevance

12

/gem5/ext/testlib/
H A Dtest.py49 class TestCase(object): class in inherits:object
65 obj = super(TestCase, cls).__new__(cls, *args, **kwargs)
66 TestCase.collector.collect(obj)
75 class TestFunction(TestCase):
77 TestCase implementation which uses a callable object as a test.
83 TestCase.__init__(self, name=name, **kwargs)
H A Dloader.py59 care about collecting. (`TestCase`, `TestSuite` and `Fixture` objects.)
61 As a final note, :class:`TestCase` instances which are not put into
121 Discovered :class:`TestCase` and :class:`TestSuite` objects are wrapped by
226 new_tests = test_mod.TestCase.collector.create()
234 test_mod.TestCase.collector.remove(new_tests)
/gem5/ext/googletest/googlemock/test/
H A Dgmock_test_utils.py101 TestCase = gtest_test_utils.TestCase variable
H A Dgmock_leak_test.py56 class GMockLeakTest(gmock_test_utils.TestCase):
H A Dgmock_output_test.py156 class GMockOutputTest(gmock_test_utils.TestCase):
/gem5/ext/googletest/googletest/test/
H A Dgtest-unittest-api_test.cc57 static TestCase const** GetSortedTestCases() {
59 TestCase const** const test_cases =
60 new const TestCase*[unit_test.total_test_case_count()];
67 LessByName<TestCase>());
73 static const TestCase* FindTestCase(const char* name) {
76 const TestCase* test_case = unit_test.GetTestCase(i);
86 static TestInfo const** GetSortedTests(const TestCase* test_case) {
123 const TestCase** const test_cases = UnitTestHelper::GetSortedTestCases();
148 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest");
211 const TestCase* test_cas
[all...]
H A Dgtest_uninitialized_test.py64 class GTestUninitializedTest(gtest_test_utils.TestCase):
H A Dgtest-listener_test.cc43 using ::testing::TestCase;
80 virtual void OnTestCaseStart(const TestCase& /*test_case*/) {
96 virtual void OnTestCaseEnd(const TestCase& /*test_case*/) {
H A Dgtest_catch_exceptions_test.py85 class CatchSehExceptionsTest(gtest_test_utils.TestCase):
114 class CatchCxxExceptionsTest(gtest_test_utils.TestCase):
H A Dgtest_env_var_test.py83 class GTestEnvVarTest(gtest_test_utils.TestCase):
H A Dgtest_list_tests_unittest.py126 class GTestListTestsUnitTest(gtest_test_utils.TestCase):
H A Dgtest_test_utils.py77 TestCase = _test_module.TestCase # pylint: disable-msg=C6409 variable
H A Dgtest_break_on_failure_unittest.py93 class GTestBreakOnFailureUnitTest(gtest_test_utils.TestCase):
H A Dgtest_color_test.py70 class GTestColorTest(gtest_test_utils.TestCase):
H A Dgtest_throw_on_failure_test.py80 class ThrowOnFailureTest(gtest_test_utils.TestCase):
H A Dgtest_help_test.py98 class GTestHelpTest(gtest_test_utils.TestCase):
H A Dgtest_output_test.py259 class GTestOutputTest(gtest_test_utils.TestCase):
H A Dgtest_xml_test_utils.py45 class GTestXMLTestCase(gtest_test_utils.TestCase):
/gem5/ext/googletest/googlemock/scripts/generator/cpp/
H A Dgmock_class_test.py34 class TestCase(unittest.TestCase): class in inherits:unittest.TestCase
46 class GenerateMethodsTest(TestCase):
315 class GenerateMocksTest(TestCase):
/gem5/ext/googletest/googletest/samples/
H A Dsample9_unittest.cc42 using ::testing::TestCase;
143 const TestCase& test_case = *unit_test.GetTestCase(i);
H A Dsample10_unittest.cc42 using ::testing::TestCase;
/gem5/ext/googletest/googletest/include/gtest/internal/
H A Dgtest-param-util.h444 template <class TestCase>
446 : public TestMetaFactoryBase<typename TestCase::ParamType> {
448 typedef typename TestCase::ParamType ParamType;
453 return new ParameterizedTestFactory<TestCase>(parameter);
498 template <class TestCase>
504 typedef typename TestCase::ParamType ParamType;
516 virtual TypeId GetTestCaseTypeId() const { return GetTypeId<TestCase>(); }
593 TestCase::SetUpTestCase,
594 TestCase::TearDownTestCase,
680 template <class TestCase>
[all...]
/gem5/ext/googletest/googletest/include/gtest/
H A Dgtest.h173 class TestCase;
351 // each TestCase contains one or many Tests.
565 friend class TestCase;
712 friend class TestCase;
777 // TestCase is not copyable.
778 class GTEST_API_ TestCase { class in namespace:testing
780 // Creates a TestCase with the given name.
782 // TestCase does NOT have a default constructor. Always use this
783 // constructor to create a TestCase object.
792 TestCase(cons
[all...]
/gem5/ext/googletest/googletest/src/
H A Dgtest-internal-inl.h577 const TestCase* GetTestCase(int i) const {
584 TestCase* GetMutableTestCase(int i) {
623 // Finds and returns a TestCase with the given name. If one doesn't
633 TestCase* GetTestCase(const char* test_case_name,
675 // Sets the TestCase object for the test that's currently running.
676 void set_current_test_case(TestCase* a_current_test_case) {
703 ForEach(test_cases_, TestCase::ClearTestCaseResult);
724 // result in each TestCase and TestInfo object.
733 const TestCase* current_test_case() const { return current_test_case_; }
840 std::vector<TestCase*> test_cases
[all...]
H A Dgtest.cc335 static int SumOverTestCaseList(const std::vector<TestCase*>& case_list,
336 int (TestCase::*method)() const) {
345 static bool TestCasePassed(const TestCase* test_case) {
350 static bool TestCaseFailed(const TestCase* test_case) {
356 static bool ShouldRunTestCase(const TestCase* test_case) {
752 return SumOverTestCaseList(test_cases_, &TestCase::successful_test_count);
757 return SumOverTestCaseList(test_cases_, &TestCase::failed_test_count);
763 &TestCase::reportable_disabled_test_count);
768 return SumOverTestCaseList(test_cases_, &TestCase::disabled_test_count);
773 return SumOverTestCaseList(test_cases_, &TestCase
2720 TestCase::TestCase(const char* a_name, const char* a_type_param, function in class:testing::TestCase
[all...]

Completed in 53 milliseconds

12