addroute

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package mock_addRoute is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoute

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

AddRoute adds new route with the specified path and method

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

func (h Handler) Getwd() (string, error)

Getwd returns a rooted path name corresponding to the current directory

func (Handler) Help

func (h Handler) Help() string

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

func (Handler) IsNotExist

func (h Handler) IsNotExist(err error) bool

IsNotExist returns a boolean indicating whether the error is known to report that a file or directory does not exist

func (Handler) Match

func (h Handler) Match(pattern string, b []byte) (bool, error)

Match reports whether the byte slice b contains any match of the regular expression pattern

func (Handler) Mkdir

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

Mkdir creates a new directory with the specified name and permission bits (before umask)

func (Handler) OpenFile

func (h Handler) OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)

OpenFile opens the named file with specified flag (O_RDONLY etc.)

func (Handler) Stat

func (h Handler) Stat(name string) (os.FileInfo, error)

Stat returns a FileInfo describing the named file

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

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

func (*MockfileSystem) Getwd

func (m *MockfileSystem) Getwd() (string, error)

Getwd mocks base method

func (*MockfileSystem) IsNotExist

func (m *MockfileSystem) IsNotExist(err error) bool

IsNotExist mocks base method

func (*MockfileSystem) Match

func (m *MockfileSystem) Match(pattern string, b []byte) (bool, error)

Match mocks base method

func (*MockfileSystem) Mkdir

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

Mkdir mocks base method

func (*MockfileSystem) OpenFile

func (m *MockfileSystem) OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)

OpenFile mocks base method

func (*MockfileSystem) Stat

func (m *MockfileSystem) Stat(name string) (os.FileInfo, error)

Stat 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) Getwd

func (mr *MockfileSystemMockRecorder) Getwd() *gomock.Call

Getwd indicates an expected call of Getwd

func (*MockfileSystemMockRecorder) IsNotExist

func (mr *MockfileSystemMockRecorder) IsNotExist(err interface{}) *gomock.Call

IsNotExist indicates an expected call of IsNotExist

func (*MockfileSystemMockRecorder) Match

func (mr *MockfileSystemMockRecorder) Match(pattern, b interface{}) *gomock.Call

Match indicates an expected call of Match

func (*MockfileSystemMockRecorder) Mkdir

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

Mkdir indicates an expected call of Mkdir

func (*MockfileSystemMockRecorder) OpenFile

func (mr *MockfileSystemMockRecorder) OpenFile(name, flag, perm interface{}) *gomock.Call

OpenFile indicates an expected call of OpenFile

func (*MockfileSystemMockRecorder) Stat

func (mr *MockfileSystemMockRecorder) Stat(name interface{}) *gomock.Call

Stat indicates an expected call of Stat

Jump to

Keyboard shortcuts

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