app

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func NewContext

func NewContext(
	inStream io.Reader,
	outStream, errStream io.Writer,
	rootPath, tmplsPath string,
	fs fs.FS,
) Context

NewContext creates a new context object

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) RootPath

func (_m *MockContext) RootPath() string

RootPath mocks base method

func (*MockContext) TemplatesPath

func (_m *MockContext) TemplatesPath() string

TemplatesPath mocks base method

func (*MockContext) UI

func (_m *MockContext) UI() ui.UI

UI 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL