# README
Unit tests APIs for iWF
The APIs are generated using mockgen by the below commands:
mockgen -source=iwf/persistence.go -package=iwftest -destination=iwftest/persistence.go
mockgen -source=iwf/communication.go -package=iwftest -destination=iwftest/communication.go
mockgen -source=iwf/workflow_context.go -package=iwftest -destination=iwftest/workflow_context.go
mockgen -source=iwf/client.go -package=iwftest -destination=iwftest/client.go
or running this on sdk root folder
go generate ./...
Usage
See the example for more details.
# Packages
No description provided by the author
# Functions
NewMockClient creates a new mock instance.
NewMockClientCommon creates a new mock instance.
NewMockCommunication creates a new mock instance.
NewMockcommunicationInternal creates a new mock instance.
NewMockPersistence creates a new mock instance.
NewMockpersistenceInternal creates a new mock instance.
NewMockUnregisteredClient creates a new mock instance.
NewMockWorkflowContext creates a new mock instance.
No description provided by the author
No description provided by the author
# Structs
MockClient is a mock of Client interface.
MockClientCommon is a mock of ClientCommon interface.
MockClientCommonMockRecorder is the mock recorder for MockClientCommon.
MockClientMockRecorder is the mock recorder for MockClient.
MockCommunication is a mock of Communication interface.
MockcommunicationInternal is a mock of communicationInternal interface.
MockcommunicationInternalMockRecorder is the mock recorder for MockcommunicationInternal.
MockCommunicationMockRecorder is the mock recorder for MockCommunication.
MockPersistence is a mock of Persistence interface.
MockpersistenceInternal is a mock of persistenceInternal interface.
MockpersistenceInternalMockRecorder is the mock recorder for MockpersistenceInternal.
MockPersistenceMockRecorder is the mock recorder for MockPersistence.
MockUnregisteredClient is a mock of UnregisteredClient interface.
MockUnregisteredClientMockRecorder is the mock recorder for MockUnregisteredClient.
MockWorkflowContext is a mock of WorkflowContext interface.
MockWorkflowContextMockRecorder is the mock recorder for MockWorkflowContext.