# runtime/entrypoints/coverage.entrypoint.ts

> 15 lines of code and 2 definitions.

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

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

## Definitions

- `report` (lexical_declaration, line 8)
- `verdict` (lexical_declaration, line 14)

## Contained in

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

## Source

```typescript
import { absolutePath, relativePath } from "@ssot/paths";
import { MIN_PASSING_TESTS } from "#configuration/constants/coverage.constants";
import { floorVerdict } from "#core/validators/coverage.validator";
import process from "node:process";
import { reportAt } from "#core/loaders/report.loader";
import { reportMissing } from "#configuration/strings/coverage.strings";

const report = reportAt(absolutePath("govlabHost.reports.lint.test"));

if (report === null) {
    process.stderr.write(reportMissing(relativePath("govlabHost.reports.lint.test")));
    process.exitCode = 1;
} else {
    const verdict = floorVerdict(report, MIN_PASSING_TESTS);
    (verdict.held ? process.stdout : process.stderr).write(verdict.text);
    process.exitCode = verdict.held ? 0 : 1;
}
```
