typenametest

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Basic   string
	Named   TestType
	Pointer *TestType
	Slice   []TestType
	Array   [5]TestType
	Map     map[int]TestType
)
View Source
var (
	Channel            chan TestType
	ReceiveOnlyChannel chan<- TestType
	SendOnlyChannel    <-chan TestType
)
View Source
var (
	Interface                    interface{}
	InterfaceWithSingleMethod    interface{ Foo() }
	InterfaceWithMultipleMethods interface {
		Foo()
		Bar()
	}
)
View Source
var (
	Struct                   struct{}
	StructWithSingleField    struct{ F1 TestType }
	StructWithMultipleFields struct {
		F1 int
		F2 TestType
	}
	StructWithEmbeddedType struct{ TestType }
)
View Source
var (
	Nullary                      func()
	FuncWithMultipleInputParams  func(int, TestType)
	FuncWithSingleOutputParam    func(TestType) error
	FuncWithMultipleOutputParams func(TestType) (bool, error)
)

Functions

func Declare

func Declare(fn func(string) string)

Declare declares a unit test-suite for functions "Of()" defined in "goreflect" and "gotypes" packages.

Types

type TestType

type TestType struct{}

TestType is the type used in "goreflect" and "gotypes" packages for testing.

Jump to

Keyboard shortcuts

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