...

Package fixtures

import "github.com/maxbrunsfeld/counterfeiter/fixtures"
Overview
Index
Subdirectories

Overview ▾

type AliasedInterface

AliasedInterface is an interface that embeds an interface in an aliased package.

type AliasedInterface interface {
    alias.AnotherInterface
}

type DotImports

go:generate counterfeiter . DotImports

type DotImports interface {
    DoThings(io.Writer, *File) *http.Client
}

type EmbedsInterfaces

go:generate counterfeiter . EmbedsInterfaces

type EmbedsInterfaces interface {
    http.Handler
    another_package.AnotherInterface
    InterfaceToEmbed

    DoThings()
}

type FirstInterface

go:generate counterfeiter . FirstInterface

type FirstInterface interface {
    DoThings()
}

type HasImports

go:generate counterfeiter . HasImports

type HasImports interface {
    DoThings(io.Writer, *some_alias.File) *http.Client
}

type HasOtherTypes

go:generate counterfeiter . HasOtherTypes

type HasOtherTypes interface {
    GetThing(SomeString) SomeFunc
}

type HasVarArgs

go:generate counterfeiter . HasVarArgs

type HasVarArgs interface {
    DoThings(int, ...string) int
    DoMoreThings(int, int, ...string) int
}

type HasVarArgsWithLocalTypes

go:generate counterfeiter . HasVarArgsWithLocalTypes

type HasVarArgsWithLocalTypes interface {
    DoThings(...LocalType)
}

type ImportsGoHyphenPackage

go:generate counterfeiter . ImportsGoHyphenPackage

type ImportsGoHyphenPackage interface {
    UseHyphenType(hyphenpackage.HyphenType)
}

type InterfaceToEmbed

type InterfaceToEmbed interface {
    EmbeddedMethod() string
}

type LocalType

type LocalType struct{}

type Params

type Params struct{}

type Request

type Request struct{}

type RequestFactory

type RequestFactory func(Params, map[string]interface{}) (Request, error)

type ReusesArgTypes

go:generate counterfeiter . ReusesArgTypes

type ReusesArgTypes interface {
    DoThings(x, y string)
}

type SecondInterface

go:generate counterfeiter . SecondInterface

type SecondInterface interface {
    EmbeddedMethod() string
}

type SomeFunc

type SomeFunc func(SomeNum) bool

type SomeNum

type SomeNum uint64

type SomeString

type SomeString string

type Something

go:generate counterfeiter . Something

type Something interface {
    DoThings(string, uint64) (int, error)
    DoNothing()
    DoASlice([]byte)
    DoAnArray([4]byte)
}

type SomethingElse

go:generate counterfeiter . SomethingElse

type SomethingElse interface {
    ReturnStuff() (a, b int)
}

type SomethingFactory

go:generate counterfeiter . SomethingFactory

type SomethingFactory func(string, map[string]interface{}) string

type SomethingWithForeignInterface

SomethingWithForeignInterface is an interface that embeds a foreign interface.

type SomethingWithForeignInterface interface {
    the_aliased_package.InAliasedPackage
}

Subdirectories