/freebsd/contrib/libcbor/test/ |
H A D | test_allocator.c | 12 call_expectation *expectations; variable 19 expectations = calloc(calls, sizeof(expectations)); in set_mock_malloc() 22 expectations[i] = va_arg(args, call_expectation); in set_mock_malloc() 29 free(expectations); in finalize_mock_malloc() 50 if (expectations[alloc_calls] == MALLOC) { in instrumented_malloc() 53 } else if (expectations[alloc_calls] == MALLOC_FAIL) { in instrumented_malloc() 62 alloc_calls < alloc_calls_expected ? expectations[alloc_calls] : -1); in instrumented_malloc() 73 if (expectations[alloc_calls] == REALLOC) { in instrumented_realloc() 76 } else if (expectations[alloc_call in instrumented_realloc() [all...] |
/freebsd/contrib/googletest/googlemock/src/ |
H A D | gmock-spec-builders.cc | 69 // mockers, and all expectations. 117 ::std::vector<ExpectationBase*> expectations(1, this); in RetireAllPreRequisites() 118 while (!expectations.empty()) { in RetireAllPreRequisites() 119 ExpectationBase* exp = expectations.back(); in RetireAllPreRequisites() 120 expectations.pop_back(); in RetireAllPreRequisites() 128 expectations.push_back(next); in RetireAllPreRequisites() 139 ::std::vector<const ExpectationBase*> expectations(1, this); in AllPrerequisitesAreSatisfied() 140 while (!expectations.empty()) { in AllPrerequisitesAreSatisfied() 141 const ExpectationBase* exp = expectations.back(); in AllPrerequisitesAreSatisfied() 142 expectations.pop_back(); in AllPrerequisitesAreSatisfied() [all …]
|
/freebsd/contrib/googletest/docs/ |
H A D | gmock_cheat_sheet.md | 102 4. Set your expectations on the mock objects (How will they be called? What 107 expectations on it have been satisfied. 124 // ... other expectations ... 167 ## Setting Expectations {#ExpectCall} 186 By default, expectations can be matched in *any* order. If some or all 187 expectations must be matched in a given order, you can use the 194 gMock will verify the expectations on a mock object when it is destructed, or 200 // Verifies and removes the expectations on mock_obj; 204 // Verifies and removes the expectations on mock_obj; 210 Do not set new expectations after verifying and clearing a mock after its use. [all …]
|
H A D | gmock_for_dummies.md | 19 * **Mocks** are objects pre-programmed with *expectations*, which form a 35 2. next, you create some mock objects and specify its expectations and behavior 38 violation to the expectations as soon as it arises. 215 3. Specify your expectations on them (How many times will a method be called? 221 expectations on it have been satisfied. 266 **Important note:** gMock requires expectations to be set **before** the mock 269 any expectations on a mock after passing the mock to an API. 281 ## Setting Expectations 283 The key to using a mock object successfully is to set the *right expectations* 284 on it. If you set the expectations too strict, your test will fail as the result [all …]
|
H A D | gmock_faq.md | 82 ### I can't figure out why gMock thinks my expectations are not satisfied. What should I do? 86 trace, you'll gain insights on why the expectations you set are not met. 101 intercepts these messages and finds that they don't match any expectations, it 104 You can learn to ignore the errors, or you can rewrite your expectations to make 128 arguments, the state of relevant expectations, and etc) to help the user debug. 130 state of relevant expectations. 170 ### The "newer expectations override older ones" rule makes writing expectations awkward. Why does … 178 // 2 the second time. However, I have to write the expectations in the 191 By default, expectations don't have to be matched in *any* particular order. If 197 expectations in sequence: [all …]
|
H A D | gmock_cook_book.md | 247 .. set more expectations on mock_stream ... 463 *methods* with no expectations); they do not affect *unexpected* calls (calls of 464 methods with expectations, but they don't match). See 651 Now you want to mock this interface such that you can set expectations on it. 1490 ## Setting Expectations 1691 If you would rather have all calls occur in the order of the expectations, put 1728 require you to come up with different names for the expectations in the chains. 1737 So, to specify the partial order on the expectations we need to do two things: 1741 Expectations in the same sequence must occur in the order they are written. For 1774 When a mock method is called, gMock only considers expectations that are still [all …]
|
/freebsd/contrib/googletest/docs/reference/ |
H A D | mocking.md | 62 Creates an [expectation](../gmock_for_dummies.md#setting-expectations) that the 83 .After(expectations...) // Can be used any number of times 158 the expectations are declared. 182 `.After(`*`expectations...`*`)` 187 The parameter *`expectations...`* can be up to five 189 The mock function call is expected to occur after all of the given expectations. 211 // Collect all expectations of InitElement() calls 294 The `RetiresOnSaturation` clause is only meaningful for expectations with an 327 *Does not* set any expectations that the method will be called. 530 Represents a chronological sequence of expectations. See the [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | README.ssltest.md | 45 to succeed. All configured test expectations are verified against the second 61 ### Test expectations 72 `close_notify`). Warning alert expectations are not yet supported. (A warning 93 * ExpectedNPNProtocol, ExpectedALPNProtocol - NPN and ALPN expectations. 273 Note that the test expectations sometimes depend on the Configure settings. For 275 protocols: a build with `enable-ssl3` has different test expectations than a
|
/freebsd/contrib/googletest/googlemock/include/gmock/ |
H A D | gmock-spec-builders.h | 50 // .After(expectations) 106 // Base class for expectations. 125 // mockers, and all expectations. 128 // mock function Foo() is called, it needs to consult its expectations 132 // expectations when InSequence() is used, and thus affect which 145 // Verifies that all expectations on this mock function have been 226 // All expectations for this function mocker. 228 // It's undefined behavior to interleave expectations (EXPECT_CALLs 230 // expectations is important. Therefore it's a logic race condition 373 // Verifies and clears all expectations on the given mock object. [all …]
|
/freebsd/tools/regression/poll/ |
H A D | Readme | 10 expectations; state 0 fails in FreeBSD-4 so the above is wrong 15 l: Linux-2.6.10 with old tests (only state 0 has different expectations)
|
/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock-spec-builders_test.cc | 544 // Satisfies the above expectations. in TEST() 574 // Satisfies the above expectations. in TEST() 1006 "Google Mock tried the following 2 expectations, but none matched:"); in TEST() 1685 // .After() allows input to contain duplicated Expectations. 2198 // Tests that we can verify and clear a mock object's expectations 2199 // when none of its methods has expectations. 2204 // There should be no expectations on the methods now, so we can in TEST() 2210 // Tests that we can verify and clear a mock object's expectations 2211 // when some, but not all, of its methods have expectations *and* the 2219 // There should be no expectations on the methods now, so we can in TEST() [all …]
|
H A D | gmock_output_test_golden.txt | 97 Google Mock tried the following 2 expectations, but none matched: 119 Google Mock tried the following 2 expectations, but none matched: 141 Google Mock tried the following 2 expectations, but none matched: 335 … at program exit. Expectations on a mock object are verified when the object is destructed. Leakin…
|
/freebsd/share/mk/ |
H A D | src.lua.mk | 18 # but parts of the src build that use it may have certain expectations that 20 # to understand these and provide the expectations.
|
/freebsd/contrib/atf/atf-sh/ |
H A D | libatf-sh.subr | 157 # Sets the expectations to 'death'. 170 # Sets the expectations to 'timeout'. 183 # Sets the expectations to 'exit'. 202 # Sets the expectations to 'fail'. 215 # Sets the expectations to 'pass'. 228 # Sets the expectations to 'signal'.
|
H A D | atf-sh.3 | 239 .Ss Expectations 241 expectations are redefined by the programmer. 245 that describes what the test case expectations are at any point in time.
|
/freebsd/targets/pseudo/kernel/ |
H A D | Makefile | 5 # keep this compatible with peoples expectations...
|
/freebsd/contrib/atf/atf-c/ |
H A D | atf-c.3 | 400 .Ss Expectations 402 expectations are redefined by the programmer. 406 that describes what the test case expectations are at any point in time.
|
/freebsd/contrib/atf/atf-c++/ |
H A D | atf-c++.3 | 311 .Ss Expectations 313 expectations are redefined by the programmer. 317 that describes what the test case expectations are at any point in time.
|
/freebsd/contrib/llvm-project/clang/lib/Headers/ |
H A D | nmmintrin.h | 17 /* To match expectations of gcc we put the sse4.2 definitions into smmintrin.h,
|
/freebsd/contrib/libxo/libxo/ |
H A D | libxo-csv.7 | 89 differences in CSV file consumers and their expectations. The CSV 91 expectations.
|
/freebsd/contrib/googletest/googlemock/ |
H A D | README.md | 24 - Does automatic verification of expectations (no record-and-replay needed).
|
/freebsd/contrib/libxo/doc/ |
H A D | encoders.rst | 61 differences in CSV file consumers and their expectations. The CSV 63 expectations.
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | OSSL_STORE_expect.pod | 24 By default, no expectations on the types of objects to be loaded are made.
|
/freebsd/sys/contrib/device-tree/Bindings/remoteproc/ |
H A D | qcom,glink-rpm-edge.yaml | 63 default intents available for the channel to meet expectations of the
|
/freebsd/sys/contrib/device-tree/Bindings/soc/qcom/ |
H A D | qcom,glink.txt | 58 meet expectations of the remote.
|