package
0.0.21
Repository: https://github.com/tkrop/go-testing.git
Documentation: pkg.go.dev

# Packages

Package test contains an interface and types for testing the mock package loading and mock file generating from template.
Package test_test contains an interface and types for testing the mock package loading and mock file generating from template.

# Functions

MustTemplate crates a new mock template panicing in case of errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewFileBuilder creates a new file builder.
NewFiles creates a list of new mock files from the given set of mocks and given set of default imports to consider for applying for the template using the mocks target information to collect all mocks that should be written to the same file.
NewGenerator creates a new mock generator with given default context directory and default target setup.
NewIFace creats a new interface information using given definition.
NewLoader creates a new caching package loader, that allows efficient access to types from files and packages.
NewMethods creates a new method slice containing all methods of the given interface type.
NewParams creates a new parameter slice based on the given tuple providing the argument or return parameter list.
NewParser creates a new mock setup command line argument parser with loading of test packages enabled or disabled.
NewPkgResponse calculates a new package response using given path, package list and error information.
NewTemplate creates a new mock template.
NewType creates a new type information based on the given named type.
ToAny substitutes all `interfaces{}` types against the `any` type.

# Constants

Default directory for package loading.
Exit code for parse error.
Exit code for success.
Exit code for write error.
Default value of interface regex matching pattern.
Default mock file name.
Default value of mock interface name pattern.
Magic constant defining packages read from file.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TargetDefault provides the default target setup for the parser.

# Structs

CachedLoader allows to efficient load, parse, and analyze packages as well as interfaces.
File information.
FileBuilder is used to collect the mock file information used as input for the mock generator to create the mock source file using the template.
Generator for mocks.
IFace contains interface information.
Import information.
Method provides the method information.
Mock interface information.
Param provides method parameters.
Parser is a mock setup command line argument parser.
ParseState is keeping the state during the parsing process.
PkgResponse provides a cachable package loader response.
Type is a generic type information.
TypeMatcher contains type matcher information.

# Interfaces

Loader is the generic interface of the package and interface loader.
Template minimal mock template abstraction.