Skip to content

Commit

Permalink
fix: c8 coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Feb 4, 2023
1 parent d12576b commit 72222c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/breadc/src/parser/lexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export class Token {
return (this._type = 'string');
}
}
/* c8 ignore next 1 */
}

export class Lexer {
Expand Down
1 change: 1 addition & 0 deletions packages/breadc/src/parser/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export function parseOption(
throw new ParseError(`Unknown option ${token.raw()}`);
}
return cursor;
/* c8 ignore next 1 */
}

export function parse(root: TreeNode, args: string[]) {
Expand Down
1 change: 1 addition & 0 deletions packages/breadc/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ export function padRight(texts: string[], fill = ' '): string[] {
.map((t) => t.length)
.reduce((max, l) => Math.max(max, l), 0);
return texts.map((t) => t + fill.repeat(length - t.length));
/* c8 ignore next 1 */
}

0 comments on commit 72222c0

Please sign in to comment.