# configuration/strings/coverage.strings.ts

> 12 lines of code and 4 definitions.

Tree: Project Scripts
Language: typescript
Layer: product
Canonical: https://banes-lab.com/anatomy/scripts#file-scripts-configuration-strings-coverage-strings-ts
Source text: https://banes-lab.com/source/scripts/configuration/strings/coverage.strings.ts.txt

Listed in [configuration/strings](https://banes-lab.com/api/source/scripts/configuration/strings.md), after [configuration/strings/closure.strings.ts](https://banes-lab.com/source/scripts/configuration/strings/closure.strings.ts.md) and before [configuration/strings/credential.strings.ts](https://banes-lab.com/source/scripts/configuration/strings/credential.strings.ts.md).

## Definitions

- `failuresFound` (lexical_declaration, line 5, exported)
- `belowFloor` (lexical_declaration, line 9, exported)
- `floorHeld` (lexical_declaration, line 13, exported)
- `reportMissing` (lexical_declaration, line 1, exported)

## Contained in

- [configuration/strings](https://banes-lab.com/anatomy/scripts/folder-scripts-configuration-strings.md)

## Used by

- [core/validators/coverage.validator.ts](https://banes-lab.com/source/scripts/core/validators/coverage.validator.ts.md)

## Linked from

- [core/validators](https://banes-lab.com/anatomy/scripts/folder-scripts-core-validators.md)

## Source

```typescript
export const reportMissing = function reportMissing(report: string): string {
    return `test-floor-check: ${report} is missing, so the test step did not run or was skipped\n`;
};

export const failuresFound = function failuresFound(failed: number): string {
    return `test-floor-check: ${String(failed)} test failure(s). The test step must be green first\n`;
};

export const belowFloor = function belowFloor(passed: number, total: number, floor: number): string {
    return `test-floor-check: ${String(passed)} passing test(s) of ${String(total)}, and the floor is ${String(floor)}. Restore the missing tests, or lower the floor where a test was removed on purpose\n`;
};

export const floorHeld = function floorHeld(passed: number, floor: number): string {
    return `test-floor-check: ${String(passed)} passing test(s), at or above the floor of ${String(floor)}\n`;
};
```
