Commit ca8991b
committed
test: Achieve 100% coverage on Memory and InMemoryStorage
- Add comprehensive unit tests for InMemoryStorage (91 tests)
- Add comprehensive unit tests for Memory class (62 tests)
- Cover all edge cases including working memory hydration and tokenCount:0
- Add @vitest/coverage-v8 dependency for coverage reporting
- Total: 153 passing tests with 100% coverage on core memory classes
Coverage results:
- memory.ts: 100% statements, 100% branch, 100% functions
- in-memory.ts: 100% statements, 100% branch, 100% functions1 parent 3302626 commit ca8991b
File tree
5 files changed
+3303
-3
lines changed- .speakeasy
- tests/unit/memory
- storage
5 files changed
+3303
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments