| 40 | var testLogger = logger.NewLogger("secretstores-pluggable-logger") |
| 41 | |
| 42 | type server struct { |
| 43 | proto.UnimplementedSecretStoreServer |
| 44 | initCalled atomic.Int64 |
| 45 | onInitCalled func(*proto.SecretStoreInitRequest) |
| 46 | initErr error |
| 47 | featuresCalled atomic.Int64 |
| 48 | featuresErr error |
| 49 | getSecretCalled atomic.Int64 |
| 50 | onGetSecret func(*proto.GetSecretRequest) |
| 51 | getSecretErr error |
| 52 | bulkGetSecretCalled atomic.Int64 |
| 53 | onBulkGetSecret func(*proto.BulkGetSecretRequest) |
| 54 | bulkGetSecretErr error |
| 55 | pingCalled atomic.Int64 |
| 56 | pingErr error |
| 57 | } |
| 58 | |
| 59 | func (s *server) Init(ctx context.Context, req *proto.SecretStoreInitRequest) (*proto.SecretStoreInitResponse, error) { |
| 60 | s.initCalled.Add(1) |
nothing calls this directly
no outgoing calls
no test coverage detected