()
| 269 | var times = typeof testTarget.times === 'number' ? testTarget.times : 5; |
| 270 | |
| 271 | var testFunction = function () { |
| 272 | var promises = []; |
| 273 | apis.forEach(function (api) { |
| 274 | if (api.isCallback) { |
| 275 | var r = testCallback(api, count / 100); |
| 276 | promises.push(api.isAsync ? r : Promise.resolve(1)); |
| 277 | } else { |
| 278 | var r = testAddRemove(api, count); |
| 279 | promises.push[api.isAsync ? r : Promise.resolve(1)]; |
| 280 | } |
| 281 | }); |
| 282 | return Promise.all(promises); |
| 283 | }; |
| 284 | |
| 285 | return runAsync(testFunction, times).then(function () { |
| 286 | var displayText = `running ${count} times\n`; |
nothing calls this directly
no test coverage detected
searching dependent graphs…