(Object message, Object size)
| 262 | } |
| 263 | |
| 264 | public Object addPadding(Object message, Object size) |
| 265 | { |
| 266 | // has to be transpilable |
| 267 | Object res = ""; |
| 268 | Object messageLength = ((String)message).length(); // avoid php transpilation issue |
| 269 | Object missingSpace = Helpers.subtract(Helpers.subtract(size, messageLength), 0); // - 0 is added just to trick transpile to treat the .length as a string for php |
| 270 | if (Helpers.isTrue(Helpers.isGreaterThan(missingSpace, 0))) |
| 271 | { |
| 272 | for (var i = 0; Helpers.isLessThan(i, missingSpace); i++) |
| 273 | { |
| 274 | res = Helpers.add(res, " "); |
| 275 | } |
| 276 | } |
| 277 | return Helpers.add(message, res); |
| 278 | } |
| 279 | |
| 280 | public java.util.concurrent.CompletableFuture<Object> testMethod(Object methodName2, Exchange exchange, Object args, Object isPublic) |
| 281 | { |
no test coverage detected