# test.rules/shared/analyzers/taxonomy.coverage.analyzer.test.ts

> 12 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-rules-shared-analyzers-taxonomy-coverage-analyzer-test-ts
Source text: https://banes-lab.com/source/testing/test.rules/shared/analyzers/taxonomy.coverage.analyzer.test.ts.txt

Listed in [test.rules/shared/analyzers](https://banes-lab.com/api/source/testing/test.rules/shared/analyzers.md), after [test.rules/shared/analyzers/taxonomy.analyzer.test.ts](https://banes-lab.com/source/testing/test.rules/shared/analyzers/taxonomy.analyzer.test.ts.md) and before [test.rules/shared/analyzers/taxonomy.tree.analyzer.test.ts](https://banes-lab.com/source/testing/test.rules/shared/analyzers/taxonomy.tree.analyzer.test.ts.md).

## Contained in

- [test.rules/shared/analyzers](https://banes-lab.com/anatomy/testing/folder-testing-test-rules-shared-analyzers.md)

## Source

```typescript
import { describe, expect, it } from "vitest";
import { coverageFindings } from "@ssot/govlab/shared/analyzers/taxonomy.coverage.analyzer.ts";
import { excludedTrees } from "@ssot/govlab/shared/manifests/taxonomy.manifest.ts";
import { relativePath } from "@ssot/paths";

describe("coverageFindings", () => {
    it("reports only paths that no governed root, exclusion or generation folder covers", () => {
        const findings = coverageFindings();
        const excluded = excludedTrees();
        expect(findings.every((finding) => !excluded.some((tree) => finding.path.startsWith(tree)))).toBe(true);
        expect(findings.some((finding) => finding.path.startsWith(relativePath("govlab.quality")))).toBe(false);
    });
});
```
