MCPcopy
hub / github.com/netbirdio/netbird / mockSubscribeEventsServer

Struct mockSubscribeEventsServer

client/server/server_test.go:83–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83type mockSubscribeEventsServer struct {
84 ctx context.Context
85 sentEvents []*daemonProto.SystemEvent
86 grpc.ServerStream
87}
88
89func (m *mockSubscribeEventsServer) Send(event *daemonProto.SystemEvent) error {
90 m.sentEvents = append(m.sentEvents, event)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected