parser

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInterfaceSpec

func GetInterfaceSpec(f *ast.File, target string) (*ast.TypeSpec, error)

Types

type MockData

type MockData struct {
	PackageName           string
	InterfaceName         string
	MethodFields          []*ast.Field
	Components            []*ast.Field
	ExternalComponents    []*ast.Field
	InheritedMethodFields map[string][]*ast.Field
}

func Parse

func Parse(srcFile string, src interface{}, target string) (*MockData, error)

func (*MockData) Len added in v1.0.0

func (md *MockData) Len() int

Jump to

Keyboard shortcuts

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