fakeNodeRuntime is a runtime.Runtime stub that counts the per-client dispatch calls so a test can assert a bulk op does NOT stream one RPC per client.
| 16 | // fakeNodeRuntime is a runtime.Runtime stub that counts the per-client dispatch |
| 17 | // calls so a test can assert a bulk op does NOT stream one RPC per client. |
| 18 | type fakeNodeRuntime struct { |
| 19 | addClient atomic.Int32 |
| 20 | deleteUser atomic.Int32 |
| 21 | updateUser atomic.Int32 |
| 22 | } |
| 23 | |
| 24 | func (f *fakeNodeRuntime) Name() string { return "fake-node" } |
| 25 |
nothing calls this directly
no outgoing calls
no test coverage detected