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

Function testEncode

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

Source from the content-addressed store, hash-verified

5
6
7function testEncode () {
8 const exchange = new ccxt.Exchange ({
9 'id': 'sampleexchange',
10 });
11 const input = 'encode-test';
12 const encoded = exchange.encode (input);
13 const decoded = exchange.decode (encoded);
14 assert (decoded === input, 'decoded should be equal to input, got ' + decoded + ' instead of ' + input);
15}
16
17function testDecode () {
18 const exchange = new ccxt.Exchange ({

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…