github.com/hyperledger/aries-framework-go@v0.3.2/pkg/internal/gomocks/framework/aries/api/vdr/mocks.gen.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/hyperledger/aries-framework-go/pkg/framework/aries/api/vdr (interfaces: Registry)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	did "github.com/hyperledger/aries-framework-go/component/models/did"
    12  	vdr "github.com/hyperledger/aries-framework-go/pkg/framework/aries/api/vdr"
    13  )
    14  
    15  // MockRegistry is a mock of Registry interface.
    16  type MockRegistry struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockRegistryMockRecorder
    19  }
    20  
    21  // MockRegistryMockRecorder is the mock recorder for MockRegistry.
    22  type MockRegistryMockRecorder struct {
    23  	mock *MockRegistry
    24  }
    25  
    26  // NewMockRegistry creates a new mock instance.
    27  func NewMockRegistry(ctrl *gomock.Controller) *MockRegistry {
    28  	mock := &MockRegistry{ctrl: ctrl}
    29  	mock.recorder = &MockRegistryMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // Close mocks base method.
    39  func (m *MockRegistry) Close() error {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "Close")
    42  	ret0, _ := ret[0].(error)
    43  	return ret0
    44  }
    45  
    46  // Close indicates an expected call of Close.
    47  func (mr *MockRegistryMockRecorder) Close() *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockRegistry)(nil).Close))
    50  }
    51  
    52  // Create mocks base method.
    53  func (m *MockRegistry) Create(arg0 string, arg1 *did.Doc, arg2 ...vdr.DIDMethodOption) (*did.DocResolution, error) {
    54  	m.ctrl.T.Helper()
    55  	varargs := []interface{}{arg0, arg1}
    56  	for _, a := range arg2 {
    57  		varargs = append(varargs, a)
    58  	}
    59  	ret := m.ctrl.Call(m, "Create", varargs...)
    60  	ret0, _ := ret[0].(*did.DocResolution)
    61  	ret1, _ := ret[1].(error)
    62  	return ret0, ret1
    63  }
    64  
    65  // Create indicates an expected call of Create.
    66  func (mr *MockRegistryMockRecorder) Create(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
    67  	mr.mock.ctrl.T.Helper()
    68  	varargs := append([]interface{}{arg0, arg1}, arg2...)
    69  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockRegistry)(nil).Create), varargs...)
    70  }
    71  
    72  // Deactivate mocks base method.
    73  func (m *MockRegistry) Deactivate(arg0 string, arg1 ...vdr.DIDMethodOption) error {
    74  	m.ctrl.T.Helper()
    75  	varargs := []interface{}{arg0}
    76  	for _, a := range arg1 {
    77  		varargs = append(varargs, a)
    78  	}
    79  	ret := m.ctrl.Call(m, "Deactivate", varargs...)
    80  	ret0, _ := ret[0].(error)
    81  	return ret0
    82  }
    83  
    84  // Deactivate indicates an expected call of Deactivate.
    85  func (mr *MockRegistryMockRecorder) Deactivate(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
    86  	mr.mock.ctrl.T.Helper()
    87  	varargs := append([]interface{}{arg0}, arg1...)
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deactivate", reflect.TypeOf((*MockRegistry)(nil).Deactivate), varargs...)
    89  }
    90  
    91  // Resolve mocks base method.
    92  func (m *MockRegistry) Resolve(arg0 string, arg1 ...vdr.DIDMethodOption) (*did.DocResolution, error) {
    93  	m.ctrl.T.Helper()
    94  	varargs := []interface{}{arg0}
    95  	for _, a := range arg1 {
    96  		varargs = append(varargs, a)
    97  	}
    98  	ret := m.ctrl.Call(m, "Resolve", varargs...)
    99  	ret0, _ := ret[0].(*did.DocResolution)
   100  	ret1, _ := ret[1].(error)
   101  	return ret0, ret1
   102  }
   103  
   104  // Resolve indicates an expected call of Resolve.
   105  func (mr *MockRegistryMockRecorder) Resolve(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
   106  	mr.mock.ctrl.T.Helper()
   107  	varargs := append([]interface{}{arg0}, arg1...)
   108  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resolve", reflect.TypeOf((*MockRegistry)(nil).Resolve), varargs...)
   109  }
   110  
   111  // Update mocks base method.
   112  func (m *MockRegistry) Update(arg0 *did.Doc, arg1 ...vdr.DIDMethodOption) error {
   113  	m.ctrl.T.Helper()
   114  	varargs := []interface{}{arg0}
   115  	for _, a := range arg1 {
   116  		varargs = append(varargs, a)
   117  	}
   118  	ret := m.ctrl.Call(m, "Update", varargs...)
   119  	ret0, _ := ret[0].(error)
   120  	return ret0
   121  }
   122  
   123  // Update indicates an expected call of Update.
   124  func (mr *MockRegistryMockRecorder) Update(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
   125  	mr.mock.ctrl.T.Helper()
   126  	varargs := append([]interface{}{arg0}, arg1...)
   127  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockRegistry)(nil).Update), varargs...)
   128  }