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

Function testProviderPresent

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

Source from the content-addressed store, hash-verified

48}
49
50function 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
64function testProviderAbsent(provider) {
65 debug(`Checking '${provider}' is absent`);

Callers

nothing calls this directly

Calls 3

createHashFunction · 0.85
assertArrayIncludesFunction · 0.70
debugFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…