# README
对Store的API的mock
mock文件生成方法
在./store
目录执行
mockgen -source=api.go -aux_files github.com/polarismesh/polaris/store=config_file_api.go,github.com/polarismesh/polaris/store=discover_api.go,github.com/polarismesh/polaris/store=auth_api.go,github.com/polarismesh/polaris/store=admin_api.go -destination=mock/api_mock.go -package=mock
mockgen -source=mysql/admin.go -destination=mock/admin_mock.go -package=mock
# Functions
NewMockGrayStore creates a new mock instance.
NewMockLeaderElectionStore creates a new mock instance.
NewMockNamespaceStore creates a new mock instance.
NewMockStore creates a new mock instance.
NewMockToolStore creates a new mock instance.
NewMockTransaction creates a new mock instance.
NewMockTx creates a new mock instance.
# Structs
MockGrayStore is a mock of GrayStore interface.
MockGrayStoreMockRecorder is the mock recorder for MockGrayStore.
MockLeaderElectionStore is a mock of LeaderElectionStore interface.
MockLeaderElectionStoreMockRecorder is the mock recorder for MockLeaderElectionStore.
MockNamespaceStore is a mock of NamespaceStore interface.
MockNamespaceStoreMockRecorder is the mock recorder for MockNamespaceStore.
MockStore is a mock of Store interface.
MockStoreMockRecorder is the mock recorder for MockStore.
MockToolStore is a mock of ToolStore interface.
MockToolStoreMockRecorder is the mock recorder for MockToolStore.
MockTransaction is a mock of Transaction interface.
MockTransactionMockRecorder is the mock recorder for MockTransaction.
MockTx is a mock of Tx interface.
MockTxMockRecorder is the mock recorder for MockTx.