Support mocking storage::Client. #2710
Labels
api: storage
Issues related to the Cloud Storage API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
We got this feature request from at least two users, recording it here.
Mocking most functions in this class is not hard:
google-cloud-cpp/google/cloud/storage/testing/mock_client.h
Line 27 in bcefc9f
The hard thing is to mock
Client::ReadObject()
andClient::WriteObject()
.ReadObject
for "a read that works".WriteObject
for "a write that works".ReadObject
for a failure.WriteObject
for a failure.The text was updated successfully, but these errors were encountered: