(provider)
| 48 | } |
| 49 | |
| 50 | function testProviderPresent(provider) { |
| 51 | debug(`Checking '${provider}' is present`); |
| 52 | assertArrayIncludes(getProviders(), provider, 'Loaded providers'); |
| 53 | for (const cipher of providers[provider].ciphers || []) { |
| 54 | debug(`Checking '${cipher}' cipher is available`); |
| 55 | assertArrayIncludes(getCiphers(), cipher, 'Available ciphers'); |
| 56 | } |
| 57 | for (const hash of providers[provider].hashes || []) { |
| 58 | debug(`Checking '${hash}' hash is available`); |
| 59 | assertArrayIncludes(getHashes(), hash, 'Available hashes'); |
| 60 | createHash(hash); |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | function testProviderAbsent(provider) { |
| 65 | debug(`Checking '${provider}' is absent`); |
nothing calls this directly
no test coverage detected
searching dependent graphs…