MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / berRoundTrip

Function berRoundTrip

tests/modules/crypt/ber/null.js:13–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11berRoundTrip();
12
13function berRoundTrip() {
14 let ber = BER.encode([0x05]);
15 let v = BER.decode(ber);
16 assert.sameValue(null, v[1]);
17}

Callers 1

null.jsFile · 0.70

Calls 2

encodeMethod · 0.65
decodeMethod · 0.65

Tested by

no test coverage detected