MCPcopy
hub / github.com/MHSanaei/3x-ui / fakeNodeRuntime

Struct fakeNodeRuntime

internal/web/service/node_bulk_dispatch_test.go:18–22  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
18type fakeNodeRuntime struct {
19 addClient atomic.Int32
20 deleteUser atomic.Int32
21 updateUser atomic.Int32
22}
23
24func (f *fakeNodeRuntime) Name() string { return "fake-node" }
25

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected