| 40 | var testLogger = logger.NewLogger("pubsub-pluggable-test") |
| 41 | |
| 42 | type server struct { |
| 43 | proto.UnimplementedPubSubServer |
| 44 | initCalled atomic.Int64 |
| 45 | onInitCalled func(*proto.PubSubInitRequest) |
| 46 | initErr error |
| 47 | featuresCalled atomic.Int64 |
| 48 | featuresErr error |
| 49 | publishCalled atomic.Int64 |
| 50 | onPublishCalled func(*proto.PublishRequest) |
| 51 | publishErr error |
| 52 | pullChan chan *proto.PullMessagesResponse |
| 53 | pingCalled atomic.Int64 |
| 54 | pingErr error |
| 55 | onAckReceived func(*proto.PullMessagesRequest) |
| 56 | pullCalled atomic.Int64 |
| 57 | pullErr error |
| 58 | } |
| 59 | |
| 60 | //nolint:nosnakecase |
| 61 | func (s *server) PullMessages(svc proto.PubSub_PullMessagesServer) error { |
nothing calls this directly
no outgoing calls
no test coverage detected