(db)
| 8411 | // and override the default behavior |
| 8412 | /* istanbul ignore next */ |
| 8413 | function customViewCleanup(db) { |
| 8414 | return new Promise(function (resolve, reject) { |
| 8415 | db._viewCleanup(function (err, res) { |
| 8416 | if (err) { |
| 8417 | return reject(err); |
| 8418 | } |
| 8419 | resolve(res); |
| 8420 | }); |
| 8421 | }); |
| 8422 | } |
| 8423 | |
| 8424 | function defaultsTo(value) { |
| 8425 | return function (reason) { |
no outgoing calls
no test coverage detected
searching dependent graphs…