mocks

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apply

type Apply struct {
	Err error `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`

} // struct size: 16 bytes; struct align: 8 bytes; struct aligned size: 16 bytes; - 🌺 gopium @1pkg

Apply defines mock apply implementation

func (Apply) Apply

Apply mock implementation

type Ast

type Ast struct {
	Err error `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`

} // struct size: 16 bytes; struct align: 8 bytes; struct aligned size: 16 bytes; - 🌺 gopium @1pkg

Ast defines mock ast type spec implementation

func (Ast) Ast

func (fmt Ast) Ast(*ast.TypeSpec, gopium.Struct) error

Ast mock implementation

type Bytes

type Bytes struct {
	Err error `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`

} // struct size: 16 bytes; struct align: 8 bytes; struct aligned size: 16 bytes; - 🌺 gopium @1pkg

Bytes defines mock fmtio bytes implementation

func (Bytes) Bytes

func (fmt Bytes) Bytes(sts []gopium.Struct) ([]byte, error)

Bytes mock implementation

type Context

type Context struct {
	After int `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	// contains filtered or unexported fields

} // struct size: 16 bytes; struct align: 8 bytes; struct aligned size: 16 bytes; - 🌺 gopium @1pkg

Context defines mock context implementation

func (Context) Deadline

func (ctx Context) Deadline() (deadline time.Time, ok bool)

Deadline mock implementation

func (*Context) Done

func (ctx *Context) Done() <-chan struct{}

Done mock implementation

func (Context) Err

func (ctx Context) Err() error

Err mock implementation

func (Context) Value

func (ctx Context) Value(key interface{}) interface{}

Value mock implementation

type Diff

type Diff struct {
	Err error `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`

} // struct size: 16 bytes; struct align: 8 bytes; struct aligned size: 16 bytes; - 🌺 gopium @1pkg

Diff defines mock diff implementation

func (Diff) Diff

func (fmt Diff) Diff(o gopium.Categorized, r gopium.Categorized) ([]byte, error)

Diff mock implementation

type Locator

type Locator struct {
	Poses map[token.Pos]Pos `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`

} // struct size: 8 bytes; struct align: 8 bytes; struct aligned size: 8 bytes; - 🌺 gopium @1pkg

Locator defines mock locator implementation

func (Locator) Fset

func (l Locator) Fset(string, *token.FileSet) (*token.FileSet, bool)

Fset mock implementation

func (Locator) ID

func (l Locator) ID(pos token.Pos) string

ID mock implementation

func (Locator) Loc

func (l Locator) Loc(pos token.Pos) string

Loc mock implementation

func (Locator) Locator

func (l Locator) Locator(string) (gopium.Locator, bool)

Locator mock implementation

func (Locator) Root

func (l Locator) Root() *token.FileSet

Root mock implementation

type Maven

type Maven struct {
	SCache []int64         `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	Types  map[string]Type `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	SWord  int64           `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	SAlign int64           `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	// contains filtered or unexported fields

} // struct size: 64 bytes; struct align: 8 bytes; struct aligned size: 64 bytes; - 🌺 gopium @1pkg

Maven defines mock maven implementation

func (Maven) Align

func (m Maven) Align(t types.Type) int64

Align mock implementation

func (Maven) Name

func (m Maven) Name(t types.Type) string

Name mock implementation

func (Maven) Size

func (m Maven) Size(t types.Type) int64

Size mock implementation

func (Maven) SysAlign

func (m Maven) SysAlign() int64

SysAlign mock implementation

func (Maven) SysCache

func (m Maven) SysCache(level uint) int64

SysCache mock implementation

func (Maven) SysWord

func (m Maven) SysWord() int64

SysWord mock implementation

type Parser

type Parser struct {
	Parser   gopium.Parser `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	Typeserr error         `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	Asterr   error         `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	// contains filtered or unexported fields

} // struct size: 64 bytes; struct align: 8 bytes; struct aligned size: 64 bytes; - 🌺 gopium @1pkg

Parser defines mock parser implementation

func (Parser) ParseAst

func (p Parser) ParseAst(ctx context.Context, src ...byte) (*ast.Package, gopium.Locator, error)

ParseAst mock implementation

func (Parser) ParseTypes

func (p Parser) ParseTypes(ctx context.Context, src ...byte) (*types.Package, gopium.Locator, error)

ParseTypes mock implementation

type Persister

type Persister struct {
	Err error `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`

} // struct size: 16 bytes; struct align: 8 bytes; struct aligned size: 16 bytes; - 🌺 gopium @1pkg

Persister defines mock pesister implementation

func (Persister) Persist

Persist mock implementation

type Pos

type Pos struct {
	ID  string `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	Loc string `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`

} // struct size: 32 bytes; struct align: 8 bytes; struct aligned size: 32 bytes; - 🌺 gopium @1pkg

Pos defines mock pos data transfer object

type Printer

type Printer struct {
	Err error `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`

} // struct size: 16 bytes; struct align: 8 bytes; struct aligned size: 16 bytes; - 🌺 gopium @1pkg

Printer defines mock ast printer implementation

func (Printer) Print

Print mock implementation

type RWC

type RWC struct {
	Rerr error `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	Werr error `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	Cerr error `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	// contains filtered or unexported fields

} // struct size: 121 bytes; struct align: 8 bytes; struct aligned size: 128 bytes; - 🌺 gopium @1pkg

RWC defines mock io reader writer closer implementation

func (*RWC) Close

func (rwc *RWC) Close() error

Close mock implementation

func (*RWC) Read

func (rwc *RWC) Read(p []byte) (int, error)

Read mock implementation

func (*RWC) Write

func (rwc *RWC) Write(p []byte) (n int, err error)

Write mock implementation

type Runner

type Runner struct {
	Err error `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`

} // struct size: 16 bytes; struct align: 8 bytes; struct aligned size: 16 bytes; - 🌺 gopium @1pkg

Runner defines mock runner implementation

func (Runner) Run

func (r Runner) Run(context.Context) error

Run mock implementation

type Strategy

type Strategy struct {
	R   gopium.Struct `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	Err error         `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	// contains filtered or unexported fields

} // struct size: 128 bytes; struct align: 8 bytes; struct aligned size: 128 bytes; - 🌺 gopium @1pkg

Strategy defines mock strategy implementation

func (*Strategy) Apply

Apply mock implementation

type StrategyBuilder

type StrategyBuilder struct {
	Strategy gopium.Strategy `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	Err      error           `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`

} // struct size: 32 bytes; struct align: 8 bytes; struct aligned size: 32 bytes; - 🌺 gopium @1pkg

StrategyBuilder defines mock strategy builder implementation

func (StrategyBuilder) Build

Build mock implementation

type Type

type Type struct {
	Name  string `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	Size  int64  `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	Align int64  `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`

} // struct size: 32 bytes; struct align: 8 bytes; struct aligned size: 32 bytes; - 🌺 gopium @1pkg

Type defines mock type data transfer object

type Walk

type Walk struct {
	Err error `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`

} // struct size: 16 bytes; struct align: 8 bytes; struct aligned size: 16 bytes; - 🌺 gopium @1pkg

Walk defines mock ast walker implementation

func (Walk) Walk

Walk mock implementation

type Walker

type Walker struct {
	Err  error         `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	Wait time.Duration `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	// contains filtered or unexported fields

} // struct size: 32 bytes; struct align: 8 bytes; struct aligned size: 32 bytes; - 🌺 gopium @1pkg

Walker defines mock walker implementation

func (Walker) Visit

func (w Walker) Visit(ctx context.Context, regex *regexp.Regexp, stg gopium.Strategy) error

Visit mock implementation

type WalkerBuilder

type WalkerBuilder struct {
	Walker gopium.Walker `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	Err    error         `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`

} // struct size: 32 bytes; struct align: 8 bytes; struct aligned size: 32 bytes; - 🌺 gopium @1pkg

WalkerBuilder defines mock walker builder implementation

func (WalkerBuilder) Build

Build mock implementation

type Writer

type Writer struct {
	Gerr error           `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	Cerr error           `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	RWCs map[string]*RWC `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"`
	// contains filtered or unexported fields

} // struct size: 64 bytes; struct align: 8 bytes; struct aligned size: 64 bytes; - 🌺 gopium @1pkg

Writer defines mock category writer implementation

func (*Writer) Category

func (w *Writer) Category(cat string) error

Category mock implementation

func (*Writer) Generate

func (w *Writer) Generate(loc string) (io.WriteCloser, error)

Generate mock implementation

Jump to

Keyboard shortcuts

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