(value, maxLength)
| 270 | } |
| 271 | |
| 272 | function formatParam(value, maxLength) { |
| 273 | if (value === undefined) { |
| 274 | return 'undefined'; |
| 275 | } |
| 276 | |
| 277 | if (value === null) { |
| 278 | return 'null'; |
| 279 | } |
| 280 | |
| 281 | return value.toString().substr(0, maxLength); |
| 282 | } |
| 283 | |
| 284 | function getPayloadSizes(requestLength, responseLength) { |
| 285 | let message = 'request size ' + formatSize(requestLength); |
no test coverage detected