(filePath, label)
| 316 | } |
| 317 | |
| 318 | function readJson(filePath, label) { |
| 319 | try { |
| 320 | return JSON.parse(fs.readFileSync(filePath, "utf8")); |
| 321 | } catch (error) { |
| 322 | fail(`Failed to read ${label}: ${error.message}`); |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | function encryptedPayloadFromArgs(args) { |
| 327 | if (typeof args.ciphertext === "string") { |
no test coverage detected