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

Method sanitizeDataInput

java/tests/src/main/java/tests/exchange/TestMain.java:1446–1466  ·  view source on GitHub ↗
(Object input)

Source from the content-addressed store, hash-verified

1444 }
1445
1446 public Object sanitizeDataInput(Object input)
1447 {
1448 // remove nulls and replace with unefined instead
1449 if (Helpers.isTrue(Helpers.isEqual(input, null)))
1450 {
1451 return null;
1452 }
1453 Object newInput = new java.util.ArrayList<Object>(java.util.Arrays.asList());
1454 for (var i = 0; Helpers.isLessThan(i, Helpers.getArrayLength(input)); i++)
1455 {
1456 Object current = Helpers.GetValue(input, i);
1457 if (Helpers.isTrue(isNullValue(current)))
1458 {
1459 ((java.util.List<Object>)newInput).add(null);
1460 } else
1461 {
1462 ((java.util.List<Object>)newInput).add(current);
1463 }
1464 }
1465 return newInput;
1466 }
1467
1468 public java.util.concurrent.CompletableFuture<Object> testRequestStatically(Exchange exchange, Object method, Object data, Object type, Object skipKeys)
1469 {

Callers 2

testRequestStaticallyMethod · 0.95

Calls 7

isTrueMethod · 0.95
isEqualMethod · 0.95
isLessThanMethod · 0.95
getArrayLengthMethod · 0.95
GetValueMethod · 0.95
isNullValueMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected