languagetesting

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLanguage

type MockLanguage struct {
	mock.Mock
}

MockLanguage is an autogenerated mock type for the Language type

func NewMockLanguage

func NewMockLanguage(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLanguage

NewMockLanguage creates a new instance of MockLanguage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func NewMockLanguageNamed

func NewMockLanguageNamed(t *testing.T, id string) *MockLanguage

NewMockLanguageNamed returns a new named mocked language.

func (*MockLanguage) Execute

func (_m *MockLanguage) Execute(logger *log.Logger, repositoryPath string) (uint64, []error, error)

Execute provides a mock function with given fields: logger, repositoryPath

func (*MockLanguage) Files

func (_m *MockLanguage) Files(logger *log.Logger, repositoryPath string) ([]string, error)

Files provides a mock function with given fields: logger, repositoryPath

func (*MockLanguage) ID

func (_m *MockLanguage) ID() string

ID provides a mock function with given fields:

func (*MockLanguage) ImportPath

func (_m *MockLanguage) ImportPath(projectRootPath string, filePath string) string

ImportPath provides a mock function with given fields: projectRootPath, filePath

func (*MockLanguage) Name

func (_m *MockLanguage) Name() string

Name provides a mock function with given fields:

func (*MockLanguage) TestFilePath

func (_m *MockLanguage) TestFilePath(projectRootPath string, filePath string) string

TestFilePath provides a mock function with given fields: projectRootPath, filePath

func (*MockLanguage) TestFramework

func (_m *MockLanguage) TestFramework() string

TestFramework provides a mock function with given fields:

Jump to

Keyboard shortcuts

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