Skip to content

Commit

Permalink
test function without any code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
christianvogt committed May 13, 2024
1 parent 93c0851 commit 8463639
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ coverage:
round: down
range: "70...100"
status:
project: true
patch: true
# project:
# frontend:
# target: auto
# threshold: 1%
# patch:
# default:
# target: 70%
project:
frontend:
informational: true
target: auto
threshold: 1%
patch:
default:
informational: true
target: 70%

comment:
layout: "reach,diff,flags,files,footer"
Expand Down
13 changes: 13 additions & 0 deletions frontend/src/utilities/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,16 @@ export const truncateString = (str: string, length: number): string => {
}
return `${str.substring(0, length)}…`;
};

export const testFunction = (x: string, y?: string): string => {
if (y) {
return `${x}-${y}`;
}
return x;
};

export const testingCodecov = (): string => {
const first = testFunction('a');
const second = testFunction('a', 'b');
return testFunction(first, second);
};

0 comments on commit 8463639

Please sign in to comment.