usecase

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateScaffoldUseCase

type CreateScaffoldUseCase interface {
	Perform(scff scaffold.Scaffold, name string) error
}

CreateScaffoldUseCase is an use-case for loading scaffolds

func NewCreateScaffoldUseCase

func NewCreateScaffoldUseCase(rootPath string, repo scaffold.Repository, ui ui.UI) CreateScaffoldUseCase

NewCreateScaffoldUseCase creates a CreateScaffoldUseCase instance

type GetScaffoldsUseCase

type GetScaffoldsUseCase interface {
	Perform() ([]scaffold.Scaffold, error)
}

GetScaffoldsUseCase is an use-case for loading scaffolds

func NewGetScaffoldsUseCase

func NewGetScaffoldsUseCase(
	repo scaffold.Repository,
) GetScaffoldsUseCase

NewGetScaffoldsUseCase creates a GetUseCase instance

type MockCreateScaffoldUseCase

type MockCreateScaffoldUseCase struct {
	// contains filtered or unexported fields
}

MockCreateScaffoldUseCase is a mock of CreateScaffoldUseCase interface

func NewMockCreateScaffoldUseCase

func NewMockCreateScaffoldUseCase(ctrl *gomock.Controller) *MockCreateScaffoldUseCase

NewMockCreateScaffoldUseCase creates a new mock instance

func (*MockCreateScaffoldUseCase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockCreateScaffoldUseCase) Perform

func (_m *MockCreateScaffoldUseCase) Perform(scff scaffold.Scaffold, name string) error

Perform mocks base method

type MockCreateScaffoldUseCaseMockRecorder

type MockCreateScaffoldUseCaseMockRecorder struct {
	// contains filtered or unexported fields
}

MockCreateScaffoldUseCaseMockRecorder is the mock recorder for MockCreateScaffoldUseCase

func (*MockCreateScaffoldUseCaseMockRecorder) Perform

func (_mr *MockCreateScaffoldUseCaseMockRecorder) Perform(arg0, arg1 interface{}) *gomock.Call

Perform indicates an expected call of Perform

type MockGetScaffoldsUseCase

type MockGetScaffoldsUseCase struct {
	// contains filtered or unexported fields
}

MockGetScaffoldsUseCase is a mock of GetScaffoldsUseCase interface

func NewMockGetScaffoldsUseCase

func NewMockGetScaffoldsUseCase(ctrl *gomock.Controller) *MockGetScaffoldsUseCase

NewMockGetScaffoldsUseCase creates a new mock instance

func (*MockGetScaffoldsUseCase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockGetScaffoldsUseCase) Perform

func (_m *MockGetScaffoldsUseCase) Perform() ([]scaffold.Scaffold, error)

Perform mocks base method

type MockGetScaffoldsUseCaseMockRecorder

type MockGetScaffoldsUseCaseMockRecorder struct {
	// contains filtered or unexported fields
}

MockGetScaffoldsUseCaseMockRecorder is the mock recorder for MockGetScaffoldsUseCase

func (*MockGetScaffoldsUseCaseMockRecorder) Perform

Perform indicates an expected call of Perform

Jump to

Keyboard shortcuts

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