typmock

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultMockAnnot = "@mock"
)

Functions

This section is empty.

Types

type GoMock added in v0.11.1

type GoMock struct {
	Layout typgen.Layouts
	Walker typgen.Walker
}

func (*GoMock) AnnotationName added in v0.11.6

func (g *GoMock) AnnotationName() string

func (*GoMock) Execute added in v0.11.1

func (g *GoMock) Execute(c *typgo.Context) error

func (*GoMock) IsAllowed added in v0.11.6

func (g *GoMock) IsAllowed(d *typgen.Annotation) bool

func (*GoMock) ProcessAnnot added in v0.11.6

func (g *GoMock) ProcessAnnot(c *typgen.Context, annot *typgen.Annotation) error

func (*GoMock) Task added in v0.11.1

func (d *GoMock) Task() *typgo.Task

Task to mock

type Mock added in v0.9.55

type Mock struct {
	Package            string
	Source             string
	Destination        string
	DestinationPackage string
}

Mock annotation data

func CreateMock added in v0.9.56

func CreateMock(d *typgen.Annotation) *Mock

CreateMock to create mock

func (*Mock) Generate added in v0.11.6

func (m *Mock) Generate(c *typgo.Context) error

MockGen execute mockgen bash

Jump to

Keyboard shortcuts

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