parametrized

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process[T any, V comparable](g GenericInterface[T, V], t T, v []V) bool

Types

type GenericInterface

type GenericInterface[T any, V comparable] interface {
	Process(T, []V) (chan T, V)
	Get() V
}

type GenericInterfaceMock

type GenericInterfaceMock GenericInterface[int, float32]

GenericInterfaceMock test interface for mocking generics Annotations:

@Mock(name="GenericInterfaceMock")

type ParametrizedFunc

type ParametrizedFunc[T comparable] func(t T) []T

type ParametrizedFuncMock

type ParametrizedFuncMock ParametrizedFunc[*http.Request]

ParametrizedFuncMock test function for mocking generics Annotations:

@Mock(name="ParametrizedFuncMock")

Directories

Path Synopsis
Code generated by Mock annotation processor.
Code generated by Mock annotation processor.

Jump to

Keyboard shortcuts

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