(res, bytesSent)
| 416 | } |
| 417 | |
| 418 | function getBytesSent(res, bytesSent) { |
| 419 | if (bytesSent !== undefined && bytesSent !== null) { |
| 420 | return bytesSent; |
| 421 | } |
| 422 | |
| 423 | if (!res) { |
| 424 | return null; |
| 425 | } |
| 426 | |
| 427 | const len = res.getHeader('Content-Length'); |
| 428 | if (len === undefined || len === null) { |
| 429 | return null; |
| 430 | } |
| 431 | |
| 432 | return len; |
| 433 | } |
| 434 | |
| 435 | function calculateTotalTime(startTime, onFinishEndTime) { |
| 436 | if (startTime === undefined || startTime === null || onFinishEndTime === undefined || onFinishEndTime === null) { |
no outgoing calls
no test coverage detected