(thisArg, _arguments, P, generator)
| 19830 | * @returns {Summary} summary instance |
| 19831 | */ |
| 19832 | clear() { |
| 19833 | return __awaiter(this, void 0, void 0, function* () { |
| 19834 | return this.emptyBuffer().write({ overwrite: true }); |
| 19835 | }); |
| 19836 | } |
| 19837 | /** |
| 19838 | * Returns the current summary buffer as a string |
| 19839 | * |
| 19840 | * @returns {string} string of summary buffer |
| 19841 | */ |
| 19842 | stringify() { |
| 19843 | return this._buffer; |
| 19844 | } |
| 19845 | /** |
| 19846 | * If the summary buffer is empty |
| 19847 | * |
| 19848 | * @returns {boolen} true if the buffer is empty |
| 19849 | */ |
| 19850 | isEmptyBuffer() { |
| 19851 | return this._buffer.length === 0; |
| 19852 | } |
| 19853 | /** |
| 19854 | * Resets the summary buffer without writing to summary file |
| 19855 | * |
| 19856 | * @returns {Summary} summary instance |
| 19857 | */ |
| 19858 | emptyBuffer() { |
| 19859 | this._buffer = ""; |
| 19860 | return this; |
| 19861 | } |
no test coverage detected