MCPcopy Index your code
hub / github.com/nodejs/node / testProviderAbsent

Function testProviderAbsent

test/addons/openssl-providers/providers.cjs:64–76  ·  view source on GitHub ↗
(provider)

Source from the content-addressed store, hash-verified

62}
63
64function 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}

Callers

nothing calls this directly

Calls 3

createHashFunction · 0.85
debugFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…