| 61 | } |
| 62 | |
| 63 | class StubBroadcast implements IWSBroadcastServiceT { |
| 64 | readonly _serviceBrand: undefined; |
| 65 | snapshotCalls = 0; |
| 66 | inFlight: SessionSnapshotState['inFlightTurn'] = null; |
| 67 | seq = 0; |
| 68 | epoch = 'ep_test'; |
| 69 | |
| 70 | async getBufferedSince(): Promise<never> { |
| 71 | throw new Error('not used'); |
| 72 | } |
| 73 | async getCursor(): Promise<{ seq: number; epoch: string }> { |
| 74 | return { seq: this.seq, epoch: this.epoch }; |
| 75 | } |
| 76 | async getSnapshotState(): Promise<SessionSnapshotState> { |
| 77 | this.snapshotCalls++; |
| 78 | return { seq: this.seq, epoch: this.epoch, inFlightTurn: this.inFlight }; |
| 79 | } |
| 80 | currentSeq(): number { |
| 81 | return this.seq; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | class StubApprovals { |
| 86 | readonly _serviceBrand: undefined; |
nothing calls this directly
no outgoing calls
no test coverage detected