Commit 9a8d823
test: Add comprehensive TDD tests for adapter pattern
RED → GREEN TDD cycle complete for NodeAdapter:
- ✅ 19 tests passing
- ✅ Basic CRUD operations
- ✅ Transaction handling (commit/rollback)
- ✅ PRAGMA operations
- ✅ Graph-specific operations (nodes, edges, traversal)
- ✅ Bulk operations in transactions (1000 inserts < 1s)
Tests cover:
- SQLiteAdapter interface compliance
- Create/Read/Update/Delete with prepared statements
- ACID transactions with proper rollback
- Graph database schema (nodes + edges tables)
- JSON property storage
- Connected node queries
- Recursive BFS traversal simulation
- Performance expectations
Next: BrowserAdapter implementation with wa-sqlite
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 70f8ad3 commit 9a8d823
2 files changed
+20
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
39 | 47 | | |
40 | 48 | | |
41 | 49 | | |
| |||
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
57 | 70 | | |
58 | 71 | | |
59 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments