AdguardTeam/AdGuardHome
Network-wide ads & trackers blocking DNS server
5c4d531 ↗TypeScript★ 37,983 (+117 today)lists: typescriptvitest-dedup 0.9.0
- Tests analyzed
- 1,340
- in 128 files
- Compared
- 99.3%
- 10 tests could not be compared
- Findings
- 175
- 174 warnings
- Exact duplicates
- 1
- error severity
Top candidates
The largest findings, linked to the analyzed commit. Review them before changing any test: identical bodies can still run under different setups the analyzer does not model.
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
validateClientsPerLine > returns "Invalid format on line N" when specific line is invalid
client_v2/src/__tests__/helpers/validate-clients-per-line.test.ts:73–77 ↗validateClientsPerLine > returns "Invalid format on line 2" when second line invalid in multi-content input
client_v2/src/__tests__/helpers/validate-clients-per-line.test.ts:107–111 ↗
- Near-duplicate testwarning
2 tests execute the same behavior events with at least one different ordering under an equivalent context; if the reordered statements are independent this may be redundant coverage, but equivalence is not proven, so the likely remedy is to.
validateClientId > rejects an fe80 address with no groups before the zone ID
client/src/__tests__/validators.test.ts:134–138 ↗validateClientId > accepts IPv6 addresses with a zone ID the server parses as addresses
client/src/__tests__/validators.test.ts:143–147 ↗
- Parameterization candidatewarning
21 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row; 21 tests form one cluster, reported as a single finding instead of 210 pairwise findings (spa.
normalizeServerName > returns plain hostname unchanged
client_v2/src/__tests__/helpers/normalize-server-name.test.ts:5–7 ↗normalizeServerName > returns subdomain unchanged
client_v2/src/__tests__/helpers/normalize-server-name.test.ts:9–11 ↗normalizeServerName > strips trailing dot (FQDN notation)
client_v2/src/__tests__/helpers/normalize-server-name.test.ts:13–15 ↗normalizeServerName > trims leading and trailing whitespace
client_v2/src/__tests__/helpers/normalize-server-name.test.ts:17–19 ↗
and 17 more
- Parameterization candidatewarning
8 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row; 8 tests form one cluster, reported as a single finding instead of 28 pairwise findings (spanni.
normalizeMac > normalizes bare hex (12 chars)
client_v2/src/__tests__/helpers/normalize-mac.test.ts:5–7 ↗normalizeMac > normalizes bare hex lowercase
client_v2/src/__tests__/helpers/normalize-mac.test.ts:9–11 ↗normalizeMac > normalizes dash-separated
client_v2/src/__tests__/helpers/normalize-mac.test.ts:13–15 ↗normalizeMac > normalizes dash-separated lowercase
client_v2/src/__tests__/helpers/normalize-mac.test.ts:17–19 ↗
and 4 more
- Parameterization candidatewarning
8 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row; 8 tests form one cluster, reported as a single finding instead of 28 pairwise findings (spanni.
validateClientsPerLine > rejects a non-canonical IPv4 address
client_v2/src/__tests__/helpers/validate-clients-per-line.test.ts:20–22 ↗validateClientsPerLine > rejects an IPv6 address with an empty zone ID
client_v2/src/__tests__/helpers/validate-clients-per-line.test.ts:36–38 ↗validateClientsPerLine > rejects IPv6 CIDR with an out-of-range embedded IPv4 octet
client_v2/src/__tests__/helpers/validate-clients-per-line.test.ts:56–58 ↗validateClientsPerLine > returns "Invalid format" for single invalid line
client_v2/src/__tests__/helpers/validate-clients-per-line.test.ts:69–71 ↗
and 4 more
Findings by rule
- Parameterization candidate173
- Near-duplicate test1
- Duplicate test1
Not compared
- context could not be resolved3
- helper effects unproved7
No finding is reported for these tests, which does not mean they have no duplicates.
Appearances
| Day | Rank | Commit | Version | Tests | Compared | Findings | Duplicates |
|---|---|---|---|---|---|---|---|
| 2026-10-31 | 7 | 5c4d531 | 0.9.0 | 1,340 | 99.3% | 175 | 1 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/AdguardTeam/AdGuardHome.git
cd AdGuardHome
git checkout 5c4d531d8d13f189dc7609a32d5073c63587746d
npx [email protected] .