(key: string)
| 23 | } |
| 24 | |
| 25 | getItem(key: string) { |
| 26 | this.calls.get += 1 |
| 27 | this.events.push(`get:${key}`) |
| 28 | if (key.startsWith("opencode.throw")) throw new Error("storage get failed") |
| 29 | return this.values.get(key) ?? null |
| 30 | } |
| 31 | |
| 32 | setItem(key: string, value: string) { |
| 33 | this.calls.set += 1 |
no test coverage detected