open-feature/flagd

[CHORE] grpc_sync.go is hard to test

Geschlossen

#1.562 geöffnet am 14.02.2025

 (1 Kommentar) (2 Reaktionen) (0 zugewiesene Personen)Go (118 Forks)github user discovery
help wanted

Repository-Metriken

Stars
 (925 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 3T 9h) (8 gemergte PRs in 30 T)

Beschreibung

https://github.com/open-feature/flagd/blob/main/core/pkg/sync/grpc/grpc_sync.go makes calls to grpc (e.g. NewClient) and different parameters are set based on grpc.Sync configuration. Ideally, we would test whether than configuration affects the calls to grpc, for example by using mocks.

Contributor Guide