typed

package module
v0.0.0-...-986b50e Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package typed is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallForeignMethod

func CallForeignMethod(s Source)

Types

type AliasType

type AliasType Baz[other.Three]

type Bar

type Bar[T any, R any] interface {
	One(string) string
	Two(T) string
	Three(T) R
	Four(T) Foo[T, R]
	Five(T) Baz[T]
	Six(T) *Baz[T]
	Seven(T) other.One[T]
	Eight(T) other.Two[T, R]
	Nine(Iface[T])
	Ten(*T)
	Eleven() (*other.One[T], error)
	Twelve() (*other.Two[T, R], error)
	Thirteen() (Baz[StructType], error)
	Fourteen() (*Foo[StructType, StructType2], error)
	Fifteen() (Iface[StructType], error)
	Sixteen() (Baz[other.Three], error)
	Seventeen() (*Foo[other.Three, other.Four], error)
	Eighteen() (Iface[*other.Five], error)
	Nineteen() AliasType
}

type Baz

type Baz[T any] struct{}

type ExternalConstraint

type ExternalConstraint[I constraints.Integer, F constraints.Float] interface {
	One(string) string
	Two(I) string
	Three(I) F
	Four(I) Foo[I, F]
	Five(I) Baz[F]
	Six(I) *Baz[F]
	Seven(I) other.One[I]
	Eight(F) other.Two[I, F]
	Nine(Iface[I])
	Ten(*I)
}

type Foo

type Foo[T any, R any] struct{}

type Iface

type Iface[T any] any

type MockSource

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

MockSource is a mock of Source interface.

func NewMockSource

func NewMockSource(ctrl *gomock.Controller) *MockSource

NewMockSource creates a new mock instance.

func (*MockSource) EXPECT

func (m *MockSource) EXPECT() *MockSourceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSource) Error

func (m *MockSource) Error() string

Error mocks base method.

func (*MockSource) Method

func (m *MockSource) Method() faux.Return

Method mocks base method.

type MockSourceMockRecorder

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

MockSourceMockRecorder is the mock recorder for MockSource.

func (*MockSourceMockRecorder) Error

Error indicates an expected call of Error.

func (*MockSourceMockRecorder) Method

Method indicates an expected call of Method.

type Source

type Source interface {
	faux.Foreign
}

Source is an interface w/ an embedded foreign interface

type SourceErrorCall

type SourceErrorCall struct {
	*gomock.Call
}

SourceErrorCall wrap *gomock.Call

func (*SourceErrorCall) Do

func (c *SourceErrorCall) Do(f func() string) *SourceErrorCall

Do rewrite *gomock.Call.Do

func (*SourceErrorCall) DoAndReturn

func (c *SourceErrorCall) DoAndReturn(f func() string) *SourceErrorCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SourceErrorCall) Return

func (c *SourceErrorCall) Return(arg0 string) *SourceErrorCall

Return rewrite *gomock.Call.Return

type SourceMethodCall

type SourceMethodCall struct {
	*gomock.Call
}

SourceMethodCall wrap *gomock.Call

func (*SourceMethodCall) Do

func (c *SourceMethodCall) Do(f func() faux.Return) *SourceMethodCall

Do rewrite *gomock.Call.Do

func (*SourceMethodCall) DoAndReturn

func (c *SourceMethodCall) DoAndReturn(f func() faux.Return) *SourceMethodCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SourceMethodCall) Return

func (c *SourceMethodCall) Return(arg0 faux.Return) *SourceMethodCall

Return rewrite *gomock.Call.Return

type StructType

type StructType struct{}

type StructType2

type StructType2 struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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