Skip to content

test: add 47 comprehensive tests across all modules#4

Merged
pszymkowiak merged 1 commit intomasterfrom
test/comprehensive-tests
Mar 19, 2026
Merged

test: add 47 comprehensive tests across all modules#4
pszymkowiak merged 1 commit intomasterfrom
test/comprehensive-tests

Conversation

@pszymkowiak
Copy link
Contributor

Summary

  • 47 tests covering all modules (previously: 0 tests)
  • SQLite lock store: lock/release, blocking, relock, GC expired, concurrent access (10 threads)
  • Database: schema, symbols CRUD, sessions lifecycle, integrity check
  • Config: roundtrip, resilience to malformed JSON, S3 config
  • Parser: multi-language AST parsing (Rust, TypeScript, Python, JavaScript), node_modules skip
  • CLI: identifier validation (path traversal, arg injection), lock expiry computation

Test plan

  • cargo test — 47 passed, 0 failed, 0 warnings

- SQLite lock store (9): lock/release, blocking, relock, release_all,
  all_locks, locks_for_agent, gc_expired, refresh_ttl, concurrent access
- Database (10): schema init, upsert/count symbols, list/search/filter,
  available symbols, session lifecycle, integrity check
- Config (5): default config, save/load roundtrip, missing file fallback,
  malformed JSON resilience, S3 config roundtrip
- Parser AST (13): Rust/TypeScript/Python/JavaScript parsing, struct+impl,
  enum+trait, interfaces, symbol ID format, hash determinism,
  node_modules skip, kind normalization
- CLI validation (10): valid/invalid identifiers, path traversal,
  argument injection, lock expiry computation
@pszymkowiak pszymkowiak merged commit d1e5e24 into master Mar 19, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant