MCPcopy Index your code
hub / github.com/ccxt/ccxt / varToString

Method varToString

java/tests/src/main/java/tests/exchange/TestMain.java:1363–1378  ·  view source on GitHub ↗
(Object... optionalArgs)

Source from the content-addressed store, hash-verified

1361 }
1362
1363 public Object varToString(Object... optionalArgs)
1364 {
1365 Object obj = Helpers.getArg(optionalArgs, 0, null);
1366 Object newString = null;
1367 if (Helpers.isTrue(Helpers.isEqual(obj, null)))
1368 {
1369 newString = "undefined";
1370 } else if (Helpers.isTrue(isNullValue(obj)))
1371 {
1372 newString = "null";
1373 } else
1374 {
1375 newString = jsonStringify(obj);
1376 }
1377 return newString;
1378 }
1379
1380 public Object AssertStaticRequestOutput(Exchange exchange, Object type, Object skipKeys, Object storedUrl, Object requestUrl, Object storedOutput, Object newOutput)
1381 {

Callers 1

Calls 5

getArgMethod · 0.95
isTrueMethod · 0.95
isEqualMethod · 0.95
isNullValueMethod · 0.80
jsonStringifyMethod · 0.80

Tested by

no test coverage detected