fluent

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

Jump to

Keyboard shortcuts

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