/third_party/node/deps/npm/test/lib/commands/ |
D | doctor.js | 74 const mocks = { variable 86 mocks, property 102 mocks, property 121 mocks, property 140 mocks, property 158 mocks, property 176 mocks, property 195 mocks, property 211 mocks, property 227 mocks, property [all …]
|
D | install.js | 12 mocks: { property 56 mocks: { property 96 mocks: { property 122 mocks: { property 150 mocks: { property
|
D | version.js | 11 mocks: { property 12 ...opts.mocks, 101 mocks: { property 362 mocks: { property
|
D | view.js | 22 const mocks = { variable 259 return mocks[nv.hosted.project] 262 return mocks.blue 264 return mocks[nv.name] 270 mocks: { property
|
D | outdated.js | 9 const mocks = { variable 66 if (!mocks[spec.name]) { 72 return mocks[spec.name] 238 mocks: { property
|
D | uninstall.js | 9 mocks: { property 10 ...opts.mocks,
|
D | sbom.js | 65 const mockSbom = async (t, { mocks, config, ...opts } = {}) => { argument 72 mocks: { property 77 ...mocks,
|
D | token.js | 5 const mocks = {} constant 8 mocks['npm-profile'] = profile 12 mocks['{LIB}/utils/read-user-info.js'] = readUserInfo 18 mocks, property
|
D | shrinkwrap.js | 27 const shrinkwrap = async (t, prefixDir = {}, config = {}, mocks = {}) => { argument 29 mocks, property
|
D | prune.js | 7 mocks: { property
|
/third_party/node/lib/internal/test_runner/mock/ |
D | mock.js | 35 #mocks; field in MockFunctionContext 42 this.#mocks = new SafeMap(); 83 this.#mocks.set(call, implementation); 123 const mock = this.#mocks.get(nextCall); 130 this.#mocks.delete(nextCall); 140 #mocks = []; field in MockTracker 359 this.#mocks = []; 366 for (let i = 0; i < this.#mocks.length; i++) { 367 FunctionPrototypeCall(restore, this.#mocks[i]); 433 ArrayPrototypePush(this.#mocks, ctx);
|
/third_party/node/deps/npm/test/fixtures/ |
D | mock-npm.js | 50 const buildMocks = (t, mocks) => { 53 ...mocks, 65 const getMockNpm = async (t, { mocks, init, load, npm: npmOpts }) => { property 66 const { logMocks, logs, display } = mockLogs(mocks) 67 const allMocks = buildMocks(t, { ...mocks, ...logMocks }) 141 mocks = {}, 246 mocks: withDirs(mocks), property
|
D | tmock.js | 22 const tmock = (t, p, mocks = {}) => { argument 23 const entries = Object.entries(mocks).map(([k, v]) => [replace(k), v])
|
/third_party/cJSON/tests/unity/auto/ |
D | generate_test_runner.rb | 156 def create_header(output, mocks, testfile_includes = []) argument 158 create_runtest(output, mocks) 164 output.puts('#include "cmock.h"') unless mocks.empty? 180 mocks.each do |mock| 193 def create_externs(output, tests, _mocks) 216 mocks = mock_headers.map { |mock| File.basename(mock) } 217 mocks.each do |mock| 225 mocks.each do |mock| 233 mocks.each do |mock|
|
/third_party/skia/third_party/externals/dawn/src/tests/ |
D | BUILD.gn | 129 # Source code for mocks used for unit testing are separated from the rest of 145 "unittests/native/mocks/BindGroupLayoutMock.h", 146 "unittests/native/mocks/BindGroupMock.h", 147 "unittests/native/mocks/CommandBufferMock.h", 148 "unittests/native/mocks/ComputePipelineMock.h", 149 "unittests/native/mocks/DeviceMock.h", 150 "unittests/native/mocks/ExternalTextureMock.h", 151 "unittests/native/mocks/PipelineLayoutMock.h", 152 "unittests/native/mocks/QuerySetMock.h", 153 "unittests/native/mocks/RenderPipelineMock.h", [all …]
|
/third_party/unity/auto/ |
D | generate_test_runner.rb | 234 def create_header(output, mocks, testfile_includes = []) argument 239 output.puts('#include "cmock.h"') unless mocks.empty? 259 mocks.each do |mock| 273 def create_externs(output, tests, _mocks) 296 mocks = mock_headers.map { |mock| File.basename(mock, '.*') } 297 mocks.each do |mock| 305 mocks.each do |mock| 313 mocks.each do |mock|
|
/third_party/node/deps/npm/test/lib/utils/ |
D | log-file.js | 43 const loadLogFile = async (t, { buffer = [], mocks, testdir = {}, ...options } = {}) => { property 46 const MockLogFile = tmock(t, '{LIB}/utils/log-file.js', mocks) 138 mocks: { property 163 mocks: { property 246 mocks: { property 261 mocks: { property 291 mocks: { property
|
D | update-notifier.js | 21 mocks: _mocks = {}, 70 const mocks = { variable 80 mocks, property 86 const updateNotifier = tmock(t, '{LIB}/utils/update-notifier.js', mocks) 189 const { wroteFile, result, MANIFEST_REQUEST } = await runUpdateNotifier(t, { mocks: { property
|
D | exit-handler.js | 56 const mockExitHandler = async (t, { config, mocks, files, ...opts } = {}) => { argument 61 mocks: { property 65 ...mocks, 94 ...mocks, 375 mocks: { 403 mocks: { 442 mocks: {
|
D | display.js | 8 const mockDisplay = (t, mocks) => { argument 9 const { logs, logMocks } = mockLogs(mocks) 11 ...mocks,
|
D | log-shim.js | 4 const makeShim = (mocks) => tmock(t, '{LIB}/utils/log-shim.js', mocks) argument
|
/third_party/node/deps/npm/test/lib/ |
D | arborist-cmd.js | 6 const mockArboristCmd = async (t, exec, workspace, { mocks = {}, ...opts } = {}) => { argument 7 const ArboristCmd = tmock(t, '{LIB}/arborist-cmd.js', mocks) 129 mocks: { property
|
D | docs.js | 57 mocks: { 76 mocks: { property
|
/third_party/googletest/googlemock/ |
D | README.md | 18 - Provides a declarative syntax for defining mocks. 19 - Can define partial (hybrid) mocks, which are a cross of real and mock
|
/third_party/python/Doc/library/ |
D | unittest.mock.rst | 116 When you nest patch decorators the mocks are passed in to the decorated 177 This ensures that your mocks will fail in the same way as your production 213 new mocks when you access them [#]_. Accessing the same attribute will always 241 allows mocks to pass :func:`isinstance` tests. 284 mocks. 416 parameter as ``True``. Child mocks and the return value mock 444 mocks using standard dot notation and unpacking a dictionary in the 457 The same thing can be achieved in the constructor call to mocks: 477 For mocks with a *spec* this includes all the permitted attributes 486 Create the child mocks for attributes and return value. [all …]
|