initialize

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_initialize is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(c *gofr.Context) (interface{}, error)

Init creates a basic layout for a project

Types

type Handler

type Handler struct {
}

func (Handler) Chdir

func (h Handler) Chdir(dir string) error

Chdir changes the current working directory to the named directory

func (Handler) Create

func (h Handler) Create(name string) (*os.File, error)

Create creates or truncates a file the specified file name

func (Handler) Help

func (h Handler) Help() string

Help returns a formatted string containing usage instructions, flags, examples and a description

func (Handler) Mkdir

func (h Handler) Mkdir(name string, perm os.FileMode) error

Mkdir creates a new directory with the specified name

type MockFileSystem

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

MockFileSystem is a mock of fileSystem interface

func NewMockFileSystem

func NewMockFileSystem(ctrl *gomock.Controller) *MockFileSystem

NewMockFileSystem creates a new mock instance

func (*MockFileSystem) Chdir

func (m *MockFileSystem) Chdir(dir string) error

Chdir mocks base method

func (*MockFileSystem) Create

func (m *MockFileSystem) Create(name string) (*os.File, error)

Create mocks base method

func (*MockFileSystem) EXPECT

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

func (*MockFileSystem) Mkdir

func (m *MockFileSystem) Mkdir(name string, perm os.FileMode) error

Mkdir mocks base method

type MockFileSystemMockRecorder

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

MockFileSystemMockRecorder is the mock recorder for MockFileSystem

func (*MockFileSystemMockRecorder) Chdir

func (mr *MockFileSystemMockRecorder) Chdir(dir interface{}) *gomock.Call

Chdir indicates an expected call of Chdir

func (*MockFileSystemMockRecorder) Create

func (mr *MockFileSystemMockRecorder) Create(name interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockFileSystemMockRecorder) Mkdir

func (mr *MockFileSystemMockRecorder) Mkdir(name, perm interface{}) *gomock.Call

Mkdir indicates an expected call of Mkdir

Jump to

Keyboard shortcuts

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