Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityInterfaceMock ¶
type IdentityInterfaceMock struct {
// GetFunc mocks the Get method.
GetFunc func(ctx context.Context, url string) (*http.Response, error)
// contains filtered or unexported fields
}
IdentityInterfaceMock is a mock implementation of identityclient.IdentityInterface.
func TestSomethingThatUsesIdentityInterface(t *testing.T) {
// make and configure a mocked identityclient.IdentityInterface
mockedIdentityInterface := &IdentityInterfaceMock{
GetFunc: func(ctx context.Context, url string) (*http.Response, error) {
panic("mock out the Get method")
},
}
// use mockedIdentityInterface in code that requires identityclient.IdentityInterface
// and then make assertions.
}
Click to show internal directories.
Click to hide internal directories.