Documentation
¶
Overview ¶
Package testmoqs contains multiple test mocks and adaptors for use in unit testing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoSomethingWithParam ¶ added in v0.27.0
func DoSomethingWithParam(Param)
Types ¶
type Generic ¶ added in v0.27.0
func (Generic[T, V]) DoSomething ¶ added in v0.27.0
func (g Generic[T, V]) DoSomething()
func (Generic[X, Y]) DoSomethingElse ¶ added in v0.27.0
func (g Generic[X, Y]) DoSomethingElse()
func (*Generic[X, Y]) DoSomethingElsePtr ¶ added in v0.27.0
func (g *Generic[X, Y]) DoSomethingElsePtr()
func (*Generic[T, V]) DoSomethingPtr ¶ added in v0.27.0
func (g *Generic[T, V]) DoSomethingPtr()
type PassByRefSimple ¶
type PassByRefSimple struct{}
type PassByValueSimple ¶
type PassByValueSimple struct{}
type Reduced ¶
type Reduced interface {
Usual(sParam string, bParam bool) (sResult string, err error)
ReallyUnusualParams(struct {
// contains filtered or unexported fields
})
ReallyUnusualResults() struct {
// contains filtered or unexported fields
}
// contains filtered or unexported methods
}
Reduced creates a mock with an embedded reduced interface with only the exported methods mocked when using the ExcludeNonExported flag
Click to show internal directories.
Click to hide internal directories.