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

Function changed

test/parallel/test-crypto-dh-generate-keys.js:32–38  ·  view source on GitHub ↗
(shouldChange, first, second)

Source from the content-addressed store, hash-verified

30 const secondPublicKey = dh.getPublicKey();
31 const secondPrivateKey = dh.getPrivateKey();
32 function changed(shouldChange, first, second) {
33 if (shouldChange) {
34 assert.notDeepStrictEqual(first, second);
35 } else {
36 assert.deepStrictEqual(first, second);
37 }
38 }
39 changed(expected.includes('public'), firstPublicKey, secondPublicKey);
40 changed(expected.includes('private'), firstPrivateKey, secondPrivateKey);
41 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…