(provider)
| 62 | } |
| 63 | |
| 64 | function testProviderAbsent(provider) { |
| 65 | debug(`Checking '${provider}' is absent`); |
| 66 | assertArrayDoesNotInclude(getProviders(), provider, 'Loaded providers'); |
| 67 | for (const cipher of providers[provider].ciphers || []) { |
| 68 | debug(`Checking '${cipher}' cipher is unavailable`); |
| 69 | assertArrayDoesNotInclude(getCiphers(), cipher, 'Available ciphers'); |
| 70 | } |
| 71 | for (const hash of providers[provider].hashes || []) { |
| 72 | debug(`Checking '${hash}' hash is unavailable`); |
| 73 | assertArrayDoesNotInclude(getHashes(), hash, 'Available hashes'); |
| 74 | assert.throws(() => { createHash(hash); }, { code: 'ERR_OSSL_EVP_UNSUPPORTED' }); |
| 75 | } |
| 76 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…