()
| 561 | } |
| 562 | |
| 563 | generate() { |
| 564 | if (this.options.format === "TXT") { |
| 565 | return this.generateText(); |
| 566 | } else if (this.options.format === "RAW") { |
| 567 | return this.generateRaw(); |
| 568 | } else if (this.options.format === "JSON") { |
| 569 | return this.generateJson(); |
| 570 | } |
| 571 | throw new FirebaseError('Invalid report format expected "TXT", "JSON", or "RAW"'); |
| 572 | } |
| 573 | |
| 574 | generateRaw() { |
| 575 | return this.parse(this.writeRaw.bind(this), () => { |
no test coverage detected