internal

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package internal is an internal package that help to test generated mocks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertGoMockGenerated

func AssertGoMockGenerated[T any](g *gomega.WithT, mock interface{}, ctrl *gomock.Controller)

AssertGoMockGenerated check given "mock" implemented interface T and invocation of interface method is recorded by ctrl

func AssertGoMockGeneratedMethod

func AssertGoMockGeneratedMethod(g *gomega.WithT, method reflect.Method, receiver reflect.Value, expect reflect.Value)

func InvokeFunc

func InvokeFunc(fn reflect.Value, in []reflect.Value) []reflect.Value

func MockValue

func MockValue(typ reflect.Type, isVarargs bool) reflect.Value

MockValue mock a value of given types. if this is a slice and varargs, the slice contains one element

Types

This section is empty.

Jump to

Keyboard shortcuts

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