Home
last modified time | relevance | path

Searched refs:mocks (Results 1 – 25 of 74) sorted by relevance

123

/third_party/node/deps/npm/test/lib/commands/
Ddoctor.js74 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 …]
Dinstall.js12 mocks: { property
56 mocks: { property
96 mocks: { property
122 mocks: { property
150 mocks: { property
Dversion.js11 mocks: { property
12 ...opts.mocks,
101 mocks: { property
362 mocks: { property
Dview.js22 const mocks = { variable
259 return mocks[nv.hosted.project]
262 return mocks.blue
264 return mocks[nv.name]
270 mocks: { property
Doutdated.js9 const mocks = { variable
66 if (!mocks[spec.name]) {
72 return mocks[spec.name]
238 mocks: { property
Duninstall.js9 mocks: { property
10 ...opts.mocks,
Dsbom.js65 const mockSbom = async (t, { mocks, config, ...opts } = {}) => { argument
72 mocks: { property
77 ...mocks,
Dtoken.js5 const mocks = {} constant
8 mocks['npm-profile'] = profile
12 mocks['{LIB}/utils/read-user-info.js'] = readUserInfo
18 mocks, property
Dshrinkwrap.js27 const shrinkwrap = async (t, prefixDir = {}, config = {}, mocks = {}) => { argument
29 mocks, property
Dprune.js7 mocks: { property
/third_party/node/lib/internal/test_runner/mock/
Dmock.js35 #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/
Dmock-npm.js50 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
Dtmock.js22 const tmock = (t, p, mocks = {}) => { argument
23 const entries = Object.entries(mocks).map(([k, v]) => [replace(k), v])
/third_party/cJSON/tests/unity/auto/
Dgenerate_test_runner.rb156 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/
DBUILD.gn129 # 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/
Dgenerate_test_runner.rb234 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/
Dlog-file.js43 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
Dupdate-notifier.js21 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
Dexit-handler.js56 const mockExitHandler = async (t, { config, mocks, files, ...opts } = {}) => { argument
61 mocks: { property
65 ...mocks,
94 ...mocks,
375 mocks: {
403 mocks: {
442 mocks: {
Ddisplay.js8 const mockDisplay = (t, mocks) => { argument
9 const { logs, logMocks } = mockLogs(mocks)
11 ...mocks,
Dlog-shim.js4 const makeShim = (mocks) => tmock(t, '{LIB}/utils/log-shim.js', mocks) argument
/third_party/node/deps/npm/test/lib/
Darborist-cmd.js6 const mockArboristCmd = async (t, exec, workspace, { mocks = {}, ...opts } = {}) => { argument
7 const ArboristCmd = tmock(t, '{LIB}/arborist-cmd.js', mocks)
129 mocks: { property
Ddocs.js57 mocks: {
76 mocks: { property
/third_party/googletest/googlemock/
DREADME.md18 - 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/
Dunittest.mock.rst116 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 …]

123