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