types

package
v3.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterfaceSpecification

type InterfaceSpecification struct {
	InterfaceName   string
	InterfaceParams []InterfaceSpecificationParam
}

InterfaceSpecification represents abstraction over interface type. It contains all the metadata required to render a mock for given interface. One could deduce whether interface is generic by looking for type params

func FindAllInterfaces

func FindAllInterfaces(p *ast.Package, pattern string) []InterfaceSpecification

type InterfaceSpecificationParam

type InterfaceSpecificationParam struct {
	ParamNames []string
	ParamType  string
}

InterfaceSpecificationParam represents a group of type param variables and their type I.e. [T,K any] would result in names "T","K" and type "any"

Jump to

Keyboard shortcuts

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