MCPcopy
hub / github.com/livekit/livekit / FakeMessageSink

Struct FakeMessageSink

pkg/routing/routingfakes/fake_message_sink.go:12–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10)
11
12type FakeMessageSink struct {
13 CloseStub func()
14 closeMutex sync.RWMutex
15 closeArgsForCall []struct {
16 }
17 ConnectionIDStub func() livekit.ConnectionID
18 connectionIDMutex sync.RWMutex
19 connectionIDArgsForCall []struct {
20 }
21 connectionIDReturns struct {
22 result1 livekit.ConnectionID
23 }
24 connectionIDReturnsOnCall map[int]struct {
25 result1 livekit.ConnectionID
26 }
27 IsClosedStub func() bool
28 isClosedMutex sync.RWMutex
29 isClosedArgsForCall []struct {
30 }
31 isClosedReturns struct {
32 result1 bool
33 }
34 isClosedReturnsOnCall map[int]struct {
35 result1 bool
36 }
37 WriteMessageStub func(proto.Message) error
38 writeMessageMutex sync.RWMutex
39 writeMessageArgsForCall []struct {
40 arg1 proto.Message
41 }
42 writeMessageReturns struct {
43 result1 error
44 }
45 writeMessageReturnsOnCall map[int]struct {
46 result1 error
47 }
48 invocations map[string][][]interface{}
49 invocationsMutex sync.RWMutex
50}
51
52func (fake *FakeMessageSink) Close() {
53 fake.closeMutex.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected