(jobIds: string[], bytesBilled: string[])
| 26 | } |
| 27 | |
| 28 | export function formatExecutionSuffix(jobIds: string[], bytesBilled: string[]): string { |
| 29 | const jobMetadataParts: string[] = []; |
| 30 | if (jobIds.length > 0) { |
| 31 | jobMetadataParts.push(`\n \t jobId: ${jobIds.join(", ")}`); |
| 32 | } |
| 33 | if (bytesBilled.length > 0) { |
| 34 | jobMetadataParts.push(`\n \t Bytes billed: ${bytesBilled.join(", ")}`); |
| 35 | } |
| 36 | return jobMetadataParts.length > 0 ? ` ${jobMetadataParts}` : ""; |
| 37 | } |
| 38 | |
| 39 | export function formatBytesInHumanReadableFormat(bytes: number): string { |
| 40 | // we do not want to raise an error when bytes < 0 |
no test coverage detected