Home
last modified time | relevance | path

Searched full:testing (Results 1 – 25 of 1839) sorted by relevance

12345678910>>...74

/freebsd/contrib/byacc/
H A DMANIFEST73 test/btyacc/btyacc_calc1.error reference output for testing
74 test/btyacc/btyacc_calc1.output reference output for testing
75 test/btyacc/btyacc_calc1.tab.c reference output for testing
76 test/btyacc/btyacc_calc1.tab.h reference output for testing
77 test/btyacc/btyacc_demo.error reference output for testing
78 test/btyacc/btyacc_demo.output reference output for testing
79 test/btyacc/btyacc_demo.tab.c reference output for testing
80 test/btyacc/btyacc_demo.tab.h reference output for testing
81 test/btyacc/btyacc_destroy1.error reference output for testing
82 test/btyacc/btyacc_destroy1.output reference output for testing
[all …]
/freebsd/contrib/googletest/googletest/include/gtest/
H A Dgtest-spi.h30 // Utilities for testing Google Test itself and code that uses Google Test
43 namespace testing {
121 } // namespace testing
125 // A set of macros for testing Google Test assertions or code that's expected
155 ::testing::TestPartResultArray gtest_failures; \
156 ::testing::internal::SingleFailureChecker gtest_checker( \
157 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr)); \
159 ::testing::ScopedFakeTestPartResultReporter gtest_reporter( \
160 ::testing::ScopedFakeTestPartResultReporter:: \
165 } while (::testing::internal::AlwaysFalse())
[all …]
H A Dgtest_pred_impl.h43 namespace testing {
54 // text, and returns a testing::AssertionResult. See the definition
79 if (const ::testing::AssertionResult gtest_ar = (expression)) \
94 << e1 << " evaluates to " << ::testing::PrintToString(v1); in AssertPred1Helper()
105 GTEST_ASSERT_(::testing::AssertPred1Helper(#pred, #v1, pred, v1), on_failure)
127 << e1 << " evaluates to " << ::testing::PrintToString(v1) << "\n" in AssertPred2Helper()
128 << e2 << " evaluates to " << ::testing::PrintToString(v2); in AssertPred2Helper()
139 GTEST_ASSERT_(::testing::AssertPred2Helper(#pred, #v1, #v2, pred, v1, v2), \
164 << e1 << " evaluates to " << ::testing::PrintToString(v1) << "\n" in AssertPred3Helper()
165 << e2 << " evaluates to " << ::testing::PrintToString(v2) << "\n" in AssertPred3Helper()
[all …]
H A Dgtest-typed-test.h46 // by a type. Remember to derive it from testing::Test.
48 class FooTest : public testing::Test {
59 typedef testing::Types<char, int, unsigned int> MyTypes;
124 // by a type. Remember to derive it from testing::Test.
126 class FooTest : public testing::Test {
160 typedef testing::Types<char, int, unsigned int> MyTypes;
192 typedef ::testing::internal::GenerateTypeList<Types>::type \
194 typedef ::testing::internal::NameGeneratorSelector<__VA_ARGS__>::type \
210 ::testing::internal::TypeParameterizedTest< \
212 ::testing::internal::TemplateSel<GTEST_TEST_CLASS_NAME_( \
[all …]
H A Dgtest-param-test.h31 // in Google C++ Testing and Mocking Framework (Google Test)
48 // class. It is usually derived from testing::TestWithParam<T> (see below for
51 // TestWithParam<T> is itself derived from testing::Test. T can be any
55 class FooTest : public ::testing::TestWithParam<const char*> {
78 // are all in the testing namespace:
150 // A parameterized test fixture must be derived from testing::Test and from
151 // testing::WithParamInterface<T>, where T is the type of the parameter
157 class BaseTest : public ::testing::Test {
162 class DerivedTest : public BaseTest, public ::testing::WithParamInterface<int> {
184 namespace testing {
[all …]
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock_link_test.h129 using testing::_;
130 using testing::A;
131 using testing::Action;
132 using testing::AllOf;
133 using testing::AnyOf;
134 using testing::Assign;
135 using testing::ContainerEq;
136 using testing::DoAll;
137 using testing::DoDefault;
138 using testing::DoubleEq;
[all …]
H A Dgmock-matchers_test.h66 namespace testing {
81 using testing::internal::DummyMatchResultListener;
82 using testing::internal::ElementMatcherPair;
83 using testing::internal::ElementMatcherPairs;
84 using testing::internal::ElementsAreArrayMatcher;
85 using testing::internal::ExplainMatchFailureTupleTo;
86 using testing::internal::FloatingEqMatcher;
87 using testing::internal::FormatMatcherDescription;
88 using testing::internal::IsReadableTypeName;
89 using testing::internal::MatchMatrix;
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Testing/Support/
H A DError.h1 //===- llvm/Testing/Support/Error.h ---------------------------------------===//
13 #include "llvm/Testing/Support/SupportHelpers.h"
32 : public testing::MatcherInterface<const ExpectedHolder<T> &> {
34 explicit ValueMatchesMono(const testing::Matcher<T> &Matcher) in ValueMatchesMono()
38 testing::MatchResultListener *listener) const override { in MatchAndExplain()
65 testing::Matcher<T> Matcher;
74 operator testing::Matcher<const ExpectedHolder<T> &>() const {
76 new ValueMatchesMono<T>(testing::SafeMatcherCast<T>(Matcher)));
84 class ErrorMatchesMono : public testing::MatcherInterface<const ErrorHolder &> {
86 explicit ErrorMatchesMono(std::optional<testing::Matcher<InfoT &>> Matcher) in ErrorMatchesMono()
[all …]
/freebsd/contrib/googletest/googletest/test/
H A Dgoogletest-output-test_.cc48 using testing::ScopedFakeTestPartResultReporter;
49 using testing::TestPartResultArray;
51 using testing::internal::Notification;
52 using testing::internal::ThreadWithParam;
55 namespace posix = ::testing::internal::posix;
70 // The testing::Test:: prefix is necessary when calling in TryTestSubroutine()
72 if (testing::Test::HasFatalFailure()) return; in TryTestSubroutine()
84 class FailingParamTest : public testing::TestWithParam<int> {};
91 testing::Values(2));
95 class EmptyBasenameParamInst : public testing::TestWithParam<int> {};
[all …]
H A Dgoogletest-failfast-unittest_.cc34 // flag. This is used for testing such functionality.
45 class HasFixtureTest : public testing::Test {};
115 class HasParametersTest : public testing::TestWithParam<int> {};
122 testing::Values(1, 2));
124 class MyTestListener : public ::testing::EmptyTestEventListener {
125 void OnTestSuiteStart(const ::testing::TestSuite& test_suite) override { in OnTestSuiteStart()
129 void OnTestStart(const ::testing::TestInfo& test_info) override { in OnTestStart()
135 const ::testing::TestPartResult& test_part_result) override { in OnTestPartResult()
140 void OnTestEnd(const ::testing::TestInfo& test_info) override { in OnTestEnd()
145 void OnTestSuiteEnd(const ::testing::TestSuite& test_suite) override { in OnTestSuiteEnd()
[all …]
H A Dgoogletest-param-test-test.cc52 using ::testing::AddGlobalTestEnvironment;
53 using ::testing::Bool;
54 using ::testing::Combine;
55 using ::testing::ConvertGenerator;
56 using ::testing::Message;
57 using ::testing::Range;
58 using ::testing::TestWithParam;
59 using ::testing::Values;
60 using ::testing::ValuesIn;
62 using ::testing::internal::ParamGenerator;
[all …]
H A Dgtest_xml_output_unittest_.cc34 // flag. This is used for testing such functionality.
44 using ::testing::InitGoogleTest;
45 using ::testing::Test;
46 using ::testing::TestEventListeners;
47 using ::testing::TestWithParam;
48 using ::testing::UnitTest;
49 using ::testing::Values;
145 testing::Test::RecordProperty(key, value); in ExternalUtilityThatCallsRecordProperty()
150 testing::Test::RecordProperty(key, value); in ExternalUtilityThatCallsRecordProperty()
171 typedef testing::Types<int, long> TypedTestTypes;
[all …]
H A Dgoogletest-death-test-test.cc39 using testing::internal::AlwaysFalse;
40 using testing::internal::AlwaysTrue;
67 namespace posix = ::testing::internal::posix;
69 using testing::ContainsRegex;
70 using testing::Matcher;
71 using testing::Message;
72 using testing::internal::DeathTest;
73 using testing::internal::DeathTestFactory;
74 using testing::internal::FilePath;
75 using testing::internal::GetLastErrnoDescription;
[all …]
H A Dgtest_list_output_unittest_.cc47 class FooTestFixture : public ::testing::Test {};
51 class ValueParamTest : public ::testing::TestWithParam<int> {};
54 INSTANTIATE_TEST_SUITE_P(ValueParam, ValueParamTest, ::testing::Values(33, 42));
57 class TypedTest : public ::testing::Test {};
58 typedef testing::Types<int, bool> TypedTestTypes;
64 class TypeParameterizedTestSuite : public ::testing::Test {};
69 typedef testing::Types<int, bool> TypeParameterizedTestSuiteTypes; // NOLINT
74 ::testing::InitGoogleTest(&argc, argv); in main()
H A Dgtest_repeat_test.cc41 // We need this when we are testing Google Test itself and therefore
47 if (::testing::internal::IsTrue(expected_val != actual_val)) { \
52 ::testing::internal::posix::Abort(); \
54 } while (::testing::internal::AlwaysFalse())
62 class MyEnvironment : public testing::Environment {
92 EXPECT_DEATH_IF_SUPPORTED(::testing::internal::posix::Abort(), ""); in TEST()
95 EXPECT_DEATH_IF_SUPPORTED(::testing::internal::posix::Abort(), ""); in TEST()
102 class MyParamTest : public testing::TestWithParam<int> {};
109 testing::Range(0, kNumberOfParamTests));
119 testing::AddGlobalTestEnvironment(new MyEnvironment); in ResetCounts()
[all …]
/freebsd/cddl/usr.sbin/zfsd/tests/
H A Dzfsd_unittest.cc128 * A dummy Vdev class used for testing other classes
149 * A CaseFile class with side effects removed, for testing
207 class ZfsdExceptionTest : public ::testing::Test
279 class VdevTest : public ::testing::Test
378 class ZfsEventTest : public ::testing::Test
421 class CaseFileTest : public ::testing::Test
437 .WillByDefault(::testing::Return(Guid(123))); in SetUp()
438 ON_CALL(*m_vdev, Name(::testing::_, ::testing::_)) in SetUp()
439 .WillByDefault(::testing::Return(string("/dev/da999"))); in SetUp()
441 .WillByDefault(::testing::Return(Guid(456))); in SetUp()
[all …]
/freebsd/contrib/bmake/unit-tests/
H A Ddeptgt-silent-jobs.mk20 @echo '${VARIANT}: testing 1'
21 -echo '${VARIANT}: testing 2'
22 echo '${VARIANT}: testing 3'
24 # expect: compat: testing 1
25 # expect: compat: testing 2
26 # expect: compat: testing 3
30 # expect: jobs: testing 1
31 # expect: jobs: testing 2
32 # expect: jobs: testing 3
H A Ddeptgt-silent-jobs.exp1 compat: testing 1
2 compat: testing 2
3 compat: testing 3
4 jobs: testing 1
5 jobs: testing 2
6 jobs: testing 3
/freebsd/sys/contrib/openzfs/.github/workflows/
H A DREADME.md13 functional-testing-20.04-->Part1-20.04
14 functional-testing-20.04-->Part2-20.04
15 functional-testing-20.04-->Part3-20.04
16 functional-testing-20.04-->Part4-20.04
17 functional-testing-22.04-->Part1-22.04
18 functional-testing-22.04-->Part2-22.04
19 functional-testing-22.04-->Part3-22.04
20 functional-testing-22.04-->Part4-22.04
34 Build-Ubuntu-20.04-->functional-testing-20.04
37 Build-Ubuntu-22.04-->functional-testing-22.04
/freebsd/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-death-test-internal.h30 // The Google C++ Testing and Mocking Framework (Google Test)
53 namespace testing {
63 ::testing::internal::RE regex) { in MakeDeathTestMatcher()
174 // Factory interface for death tests. May be mocked out for testing. in GTEST_DISABLE_MSC_WARNINGS_POP_()
205 ::testing::internal::FormatFileLocation(__FILE__, __LINE__).c_str(), \
208 death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); \
210 death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); \
223 if (::testing::internal::AlwaysTrue()) { \
224 ::testing::internal::DeathTest* gtest_dt; \
225 if (!::testing::internal::DeathTest::Create( \
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Testing/ADT/
H A DStringMapEntry.h1 //===- llvm/Testing/ADT/StringMapEntry.h ----------------------------------===//
47 : public testing::MatcherInterface<StringMapEntryT> {
55 testing::SafeMatcherCast<const std::string &>(KeyMatcherArg)),
57 testing::SafeMatcherCast<const ValueT &>(ValueMatcherArg)) {}
75 testing::MatchResultListener *ResultListener) const override {
76 testing::StringMatchResultListener KeyListener;
83 testing::StringMatchResultListener ValueListener;
95 const testing::Matcher<const std::string &> KeyMatcher;
96 const testing::Matcher<const ValueT &> ValueMatcher;
106 operator testing::Matcher<StringMapEntryT>() const { // NOLINT
[all …]
/freebsd/contrib/googletest/docs/
H A Dgmock_cook_book.md8 **Note:** gMock lives in the `testing` name space. For readability, it is
9 recommended to write `using ::testing::Foo;` once in your file before using the
420 using ::testing::NiceMock;
436 using ::testing::NiceMock;
449 using ::testing::StrictMock;
686 using ::testing::_;
726 Perhaps you haven't got used to the interaction-based way of testing yet. Or
745 When using testing doubles (mocks, fakes, stubs, and etc), sometimes their
759 using ::testing::AtLeast;
853 using ::testing::Return;
[all …]
H A Dadvanced.md52 feels more like Lisp than C++. The `::testing::AssertionResult` class solves
60 namespace testing {
81 testing::AssertionResult IsEven(int n) {
83 return testing::AssertionSuccess();
85 return testing::AssertionFailure() << n << " is odd";
119 testing::AssertionResult IsEven(int n) {
121 return testing::AssertionSuccess() << n << " is even";
123 return testing::AssertionFailure() << n << " is odd";
160 using ::testing::FloatLE;
161 using ::testing::DoubleLE;
[all …]
H A Dgmock_faq.md108 using ::testing::AnyNumber;
109 using ::testing::Not;
119 using ::testing::_;
175 using ::testing::Return;
200 using ::testing::Return;
219 using ::testing::Return;
251 using ::testing::_;
260 using ::testing::_;
275 argument, you can use testing::DeleteArg<N>() to delete the N'th (zero-indexed)
279 using ::testing::_;
[all …]
/freebsd/contrib/googletest/docs/reference/
H A Dmocking.md108 using ::testing::_;
109 using ::testing::Lt;
128 one of the following, all defined in the `::testing` namespace:
165 using ::testing::Sequence;
196 using ::testing::Expectation;
208 using ::testing::ExpectationSet;
242 using ::testing::Return;
275 using ::testing::Return;
300 using ::testing::_;
301 using ::testing::AnyNumber;
[all …]

12345678910>>...74