(policy)
| 415 | } |
| 416 | |
| 417 | function getPolicyInfo(policy) { |
| 418 | if (!policy) { |
| 419 | return undefined; |
| 420 | } |
| 421 | |
| 422 | const options = policy.getOptions && policy.getOptions(); |
| 423 | |
| 424 | return { |
| 425 | type: policy.constructor.name, |
| 426 | options: (options instanceof Map) ? mapToObject(options) : utils.emptyObject |
| 427 | }; |
| 428 | } |
| 429 | |
| 430 | function getConsistencyString(c) { |
| 431 | if (typeof c !== 'number') { |
no test coverage detected