fake

package
v1.0.7 Latest Latest
Warning

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

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

Documentation

Overview

Package fake holds test structs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	// contains filtered or unexported fields
}

Bar represent named struct

type Baz

type Baz struct {
	MyFoo *Foo `autowire:""`
}

Baz represents named struct

type Bor

type Bor struct {
	Passer InvalidInterface `autowire:"fake/Foo"`
}

Bor represent named struct

type Foo

type Foo struct {
	Name       string
	CloseCalls int
}

Foo represents named struct

func (*Foo) Close

func (f *Foo) Close() error

Close method of Foo

func (Foo) Pass

func (f Foo) Pass()

Pass method

type InvalidInterface

type InvalidInterface interface {
	Invalid()
}

InvalidInterface represents interface

type NotFoundTagDependency

type NotFoundTagDependency struct {
	// contains filtered or unexported fields
}

NotFoundTagDependency represents named struct

type Passer

type Passer interface {
	Pass()
}

Passer represents interface

type Qus

type Qus struct {
	// contains filtered or unexported fields
}

Qus represent named struct autowiring interface instance into unexported field

func (*Qus) Passer

func (q *Qus) Passer() Passer

Passer method is a simple Getter

type Qux

type Qux struct {
	Passer Passer `autowire:"fake/Foo"`
}

Qux represent named struct autowiring interface instance into exported field

Jump to

Keyboard shortcuts

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