JacobLinCool/d1-manager
D1 Manager is a web UI and API for Cloudflare D1, a serverless SQL database. It provides a web interface for managing databases, tables, and records, as well as an AI assistant to help you write query in natural language.
3d446a7 ↗Svelte★ 651 (+0 today)lists: sveltevitest-dedup 0.7.0
- Tests analyzed
- 16
- in 2 files
- Compared
- 100%
- 0 tests could not be compared
- Findings
- 10
- 10 warnings
- Exact duplicates
- 0
- 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.
- Near-duplicate testwarning
2 tests execute the same behavior events in the same order under an equivalent context, but their normalized bodies differ; a supported normalization may explain the similarity, but equivalence is not proven, so the likely remedy is to cons.
SQL statement type checks > DROP TABLE is dangerous and modify
src/lib/sql.test.ts:34–37 ↗SQL statement type checks > Lowercase statements are handled correctly
src/lib/sql.test.ts:67–70 ↗
- Near-duplicate testwarning
2 tests execute the same behavior events in the same order under an equivalent context, but their normalized bodies differ; a supported normalization may explain the similarity, but equivalence is not proven, so the likely remedy is to cons.
SQL statement type checks > Mixed statements detect highest risk
src/lib/sql.test.ts:60–64 ↗SQL statement type checks > WITH CTE and UPDATE is dangerous and modify
src/lib/sql.test.ts:86–91 ↗
- Parameterization candidatewarning
2 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row.
SQL statement type checks > SELECT is neither dangerous nor modify
src/lib/sql.test.ts:6–10 ↗SQL statement type checks > INSERT is modify but not dangerous
src/lib/sql.test.ts:13–17 ↗
- Parameterization candidatewarning
2 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row.
SQL statement type checks > INSERT is modify but not dangerous
src/lib/sql.test.ts:13–17 ↗SQL statement type checks > UPDATE is both dangerous and modify
src/lib/sql.test.ts:20–24 ↗
- Parameterization candidatewarning
2 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row.
SQL statement type checks > UPDATE is both dangerous and modify
src/lib/sql.test.ts:20–24 ↗SQL statement type checks > DELETE is dangerous and modify
src/lib/sql.test.ts:27–31 ↗
Findings by rule
- Parameterization candidate8
- Near-duplicate test2
Not compared
Every test was compared.
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-19 | 5 | 3d446a7 | 0.7.0 | 16 | 100% | 10 | 0 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/JacobLinCool/d1-manager.git
cd d1-manager
git checkout 3d446a75d1ce4135b9e7728199f364d1721f4984
npx [email protected] .