Documentation ¶
Index ¶
- type Context
- type MockContext
- func (_m *MockContext) CreateScaffoldUseCase() usecase.CreateScaffoldUseCase
- func (_m *MockContext) EXPECT() *MockContextMockRecorder
- func (_m *MockContext) GetScaffoldsUseCase() usecase.GetScaffoldsUseCase
- func (_m *MockContext) Repository() scaffold.Repository
- func (_m *MockContext) RootPath() string
- func (_m *MockContext) TemplatesPath() string
- func (_m *MockContext) UI() ui.UI
- type MockContextMockRecorder
- func (_mr *MockContextMockRecorder) CreateScaffoldUseCase() *gomock.Call
- func (_mr *MockContextMockRecorder) GetScaffoldsUseCase() *gomock.Call
- func (_mr *MockContextMockRecorder) Repository() *gomock.Call
- func (_mr *MockContextMockRecorder) RootPath() *gomock.Call
- func (_mr *MockContextMockRecorder) TemplatesPath() *gomock.Call
- func (_mr *MockContextMockRecorder) UI() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface { RootPath() string TemplatesPath() string Repository() scaffold.Repository UI() ui.UI GetScaffoldsUseCase() usecase.GetScaffoldsUseCase CreateScaffoldUseCase() usecase.CreateScaffoldUseCase }
Context is container storing configurations
type MockContext ¶
type MockContext struct {
// contains filtered or unexported fields
}
MockContext is a mock of Context interface
func NewMockContext ¶
func NewMockContext(ctrl *gomock.Controller) *MockContext
NewMockContext creates a new mock instance
func (*MockContext) CreateScaffoldUseCase ¶
func (_m *MockContext) CreateScaffoldUseCase() usecase.CreateScaffoldUseCase
CreateScaffoldUseCase mocks base method
func (*MockContext) EXPECT ¶
func (_m *MockContext) EXPECT() *MockContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockContext) GetScaffoldsUseCase ¶
func (_m *MockContext) GetScaffoldsUseCase() usecase.GetScaffoldsUseCase
GetScaffoldsUseCase mocks base method
func (*MockContext) Repository ¶
func (_m *MockContext) Repository() scaffold.Repository
Repository mocks base method
func (*MockContext) TemplatesPath ¶
func (_m *MockContext) TemplatesPath() string
TemplatesPath mocks base method
type MockContextMockRecorder ¶
type MockContextMockRecorder struct {
// contains filtered or unexported fields
}
MockContextMockRecorder is the mock recorder for MockContext
func (*MockContextMockRecorder) CreateScaffoldUseCase ¶
func (_mr *MockContextMockRecorder) CreateScaffoldUseCase() *gomock.Call
CreateScaffoldUseCase indicates an expected call of CreateScaffoldUseCase
func (*MockContextMockRecorder) GetScaffoldsUseCase ¶
func (_mr *MockContextMockRecorder) GetScaffoldsUseCase() *gomock.Call
GetScaffoldsUseCase indicates an expected call of GetScaffoldsUseCase
func (*MockContextMockRecorder) Repository ¶
func (_mr *MockContextMockRecorder) Repository() *gomock.Call
Repository indicates an expected call of Repository
func (*MockContextMockRecorder) RootPath ¶
func (_mr *MockContextMockRecorder) RootPath() *gomock.Call
RootPath indicates an expected call of RootPath
func (*MockContextMockRecorder) TemplatesPath ¶
func (_mr *MockContextMockRecorder) TemplatesPath() *gomock.Call
TemplatesPath indicates an expected call of TemplatesPath
func (*MockContextMockRecorder) UI ¶
func (_mr *MockContextMockRecorder) UI() *gomock.Call
UI indicates an expected call of UI