Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockSigningManager ¶
func NewMockSigningManager() core.SigningManager
NewMockSigningManager Constructor for a mock signing manager.
Types ¶
type MockConfigBackend ¶
type MockConfigBackend struct { //KeyValueMap map to override CustomBackend key-values. KeyValueMap map[string]interface{} }
MockConfigBackend mocks config backend for unit tests
func (*MockConfigBackend) Lookup ¶
func (b *MockConfigBackend) Lookup(key string) (interface{}, bool)
Lookup returns or unmarshals value for given key
type MockCoreContext ¶
type MockCoreContext struct { MockConfig core.CryptoSuiteConfig MockCryptoSuite core.CryptoSuite MockUserStore msp.UserStore MockSigningManager core.SigningManager MockCryptoSuiteConfig core.CryptoSuiteConfig }
MockCoreContext is a mock core context
func (*MockCoreContext) CryptoSuite ¶
func (m *MockCoreContext) CryptoSuite() core.CryptoSuite
CryptoSuite ...
func (*MockCoreContext) CryptoSuiteConfig ¶
func (m *MockCoreContext) CryptoSuiteConfig() core.CryptoSuiteConfig
CryptoSuiteConfig ...
func (*MockCoreContext) SigningManager ¶
func (m *MockCoreContext) SigningManager() core.SigningManager
SigningManager ...
type MockSigningManager ¶
type MockSigningManager struct { }
MockSigningManager is mock signing manager
Click to show internal directories.
Click to hide internal directories.