MCPcopy
hub / github.com/feast-dev/feast / MockGCSClient

Struct MockGCSClient

go/internal/feast/registry/registry_test.go:142–145  ·  view source on GitHub ↗

MockGCSClient is mock client for testing GCS registry store

Source from the content-addressed store, hash-verified

140
141// MockGCSClient is mock client for testing GCS registry store
142type MockGCSClient struct {
143 GetObjectFn func(ctx context.Context, bucket string, object string) (io.ReadCloser, error)
144 DeleteObjectFn func(ctx context.Context, bucket string, object string) error
145}
146
147func (m *MockGCSClient) GetObject(ctx context.Context, bucket string, object string) (io.ReadCloser, error) {
148 if m.GetObjectFn != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected