oci-go-sdk icon indicating copy to clipboard operation
oci-go-sdk copied to clipboard

Clients should implement interfaces

Open jhorwit2 opened this issue 7 years ago • 3 comments

Currently the various clients are all structs, which means they are not easily testable. This is going to require consumers of the SDK to implement their own interfaces on top of the SDK so that the clients can be mocked. This was a common pattern with consumers of the original SDK.

jhorwit2 avatar Nov 30 '17 22:11 jhorwit2

I don't believe this is an enhancement and is a requirement before shipping. We are having the same problem with mocking out the interface.

garthy avatar Feb 20 '18 14:02 garthy

@eginez can you take another look at this one?

jodoglevy avatar Feb 21 '18 05:02 jodoglevy

hey all I'll be working on this next! stay tunned

eginez avatar Feb 22 '18 00:02 eginez