testgen

package module
v0.0.0-...-6f9f026 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(pkgName, fileName string, tests []*Test)

Types

type MockConfig

type MockConfig = analyzer.MockConfig

type MockMethod

type MockMethod = analyzer.MockMethod

type Test

type Test struct {
	Name        string
	MockConfigs []*MockConfig
	Run         func(mocks []any)
	TestRun     string
	TestRunPkg  string
}

Directories

Path Synopsis
internal
example
Package example is a generated GoMock package.
Package example is a generated GoMock package.

Jump to

Keyboard shortcuts

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