MCPcopy Create free account
hub / github.com/ccxt/ccxt / testDecode

Function testDecode

ts/src/test/base/test.encodeDecode.ts:17–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17function testDecode () {
18 const exchange = new ccxt.Exchange ({
19 'id': 'sampleexchange',
20 });
21 const input = 'decode-test';
22 const encoded = exchange.encode (input);
23 const decoded = exchange.decode (encoded);
24 assert (decoded === input, 'decoded should be equal to input, got ' + decoded + ' instead of ' + input);
25}
26
27function testEncodeDecode () {
28 testEncode ();

Callers 1

testEncodeDecodeFunction · 0.70

Calls 3

encodeMethod · 0.95
decodeMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…