MCPcopy
hub / github.com/grpc/grpc-go / testWatcher

Struct testWatcher

internal/xds/xdsdepmgr/xds_dependency_manager_test.go:79–83  ·  view source on GitHub ↗

testWatcher is an implementation of the ConfigWatcher interface that sends the updates and errors received from the dependency manager to respective channels, for the tests to verify.

Source from the content-addressed store, hash-verified

77// the updates and errors received from the dependency manager to respective
78// channels, for the tests to verify.
79type testWatcher struct {
80 updateCh chan *xdsresource.XDSConfig
81 errorCh chan error
82 done chan struct{}
83}
84
85func newTestWatcher() *testWatcher {
86 return &testWatcher{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected