(mockDispatches, _data = data)
| 11095 | query |
| 11096 | }; |
| 11097 | } |
| 11098 | function generateKeyValues(data) { |
| 11099 | const keys = Object.keys(data); |
| 11100 | const result = []; |
| 11101 | for (let i = 0; i < keys.length; ++i) { |
| 11102 | const key = keys[i]; |
| 11103 | const value = data[key]; |
| 11104 | const name = Buffer.from(`${key}`); |
| 11105 | if (Array.isArray(value)) { |
| 11106 | for (let j = 0; j < value.length; ++j) { |
| 11107 | result.push(name, Buffer.from(`${value[j]}`)); |
| 11108 | } |
| 11109 | } else { |
| 11110 | result.push(name, Buffer.from(`${value}`)); |
| 11111 | } |
| 11112 | } |
| 11113 | return result; |
| 11114 | } |
| 11115 | function getStatusText(statusCode) { |
| 11116 | return STATUS_CODES[statusCode] || "unknown"; |
no test coverage detected