fluent

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParamType paramType = paramType{
	Field:  "Field",
	Method: "Method",
}

Functions

func CreateValidator

func CreateValidator[TValue any, TExpected any, T IValidator[TValue, TExpected]]() *T

func GetMessage

func GetMessage(original string, messagesf ...string) string

Types

type AdditiveInverse

type AdditiveInverse bool
const (
	NegativeDefault AdditiveInverse = false
	NegativeInvert  AdditiveInverse = true
)

type IAdditional

type IAdditional[T any, Y IComparable[T]] interface {
	And() Y
}

type IComparable

type IComparable[T any] interface{}

type IFluent

type IFluent[T any, Y IComparable[T]] interface {
	It(subject T) ISubject[T, Y]
}

type ISubject

type ISubject[T any, Y IComparable[T]] interface {
	Should() Y
}

type IValidator

type IValidator[TValue any, TExpected any] interface {
	Validate(t *testing.T, value TValue, expected TExpected, messagesf ...string)
}

type Match

type Match int
const (
	MatchAny Match = 1
	MatchAll Match = 2
)

type MemberType

type MemberType int64
const (
	MemberTypeAll    MemberType = 0
	MemberTypeField  MemberType = 1
	MemberTypeMethod MemberType = 2
)

Directories

Path Synopsis
Package contracts provides members to register and test Mock objects.
Package contracts provides members to register and test Mock objects.
Package floats provides members to register and test float Mock objects.
Package floats provides members to register and test float Mock objects.
Package integers provides members to register and test intergers Mock objects.
Package integers provides members to register and test intergers Mock objects.
Package strings provides members to register and test string Mock objects.
Package strings provides members to register and test string Mock objects.

Jump to

Keyboard shortcuts

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