integers

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fluent

func Fluent[T constraints.Integer](t *testing.T) fluent.IFluent[T, IComparable[T]]

Types

type Additional

type Additional[T constraints.Integer] struct {
	*Comparable[T]
}

func (*Additional[T]) And

func (s *Additional[T]) And() IComparable[T]

type Comparable

type Comparable[T constraints.Integer] struct {
	*Testable[T]
}

func (*Comparable[T]) Be

func (s *Comparable[T]) Be(value T)

func (*Comparable[T]) BeGreaterThan

func (s *Comparable[T]) BeGreaterThan(value T) fluent.IAdditional[T, IComparable[T]]

func (*Comparable[T]) BeGreaterThanOrEqualTo

func (s *Comparable[T]) BeGreaterThanOrEqualTo(value T) fluent.IAdditional[T, IComparable[T]]

func (*Comparable[T]) BeLowerThan

func (s *Comparable[T]) BeLowerThan(value T) fluent.IAdditional[T, IComparable[T]]

func (*Comparable[T]) BeLowerThanOrEqualTo

func (s *Comparable[T]) BeLowerThanOrEqualTo(value T) fluent.IAdditional[T, IComparable[T]]

func (*Comparable[T]) BeNegative

func (s *Comparable[T]) BeNegative() fluent.IAdditional[T, IComparable[T]]

func (*Comparable[T]) BePositive

func (s *Comparable[T]) BePositive() fluent.IAdditional[T, IComparable[T]]

func (*Comparable[T]) BeZero

func (s *Comparable[T]) BeZero()

func (*Comparable[T]) NotBe

func (s *Comparable[T]) NotBe(value T) fluent.IAdditional[T, IComparable[T]]

func (*Comparable[T]) NotBeNegative

func (s *Comparable[T]) NotBeNegative() fluent.IAdditional[T, IComparable[T]]

func (*Comparable[T]) NotBePositive

func (s *Comparable[T]) NotBePositive() fluent.IAdditional[T, IComparable[T]]

func (*Comparable[T]) NotBeZero

func (s *Comparable[T]) NotBeZero() fluent.IAdditional[T, IComparable[T]]

type FluentT

type FluentT[T constraints.Integer] struct {
	// contains filtered or unexported fields
}

func (*FluentT[T]) It

func (s *FluentT[T]) It(subject T) fluent.ISubject[T, IComparable[T]]

type IComparable

type IComparable[T constraints.Integer] interface {
	fluent.IComparable[T]
	Be(value T) // If comparable to be a Value, no other comparison is required
	BeZero()    // If comparable to Zero, no other comparison is required
	BeNegative() fluent.IAdditional[T, IComparable[T]]
	BePositive() fluent.IAdditional[T, IComparable[T]]
	// BeOfType(t types.Type)
	NotBe(value T) fluent.IAdditional[T, IComparable[T]]
	NotBeZero() fluent.IAdditional[T, IComparable[T]]
	NotBeNegative() fluent.IAdditional[T, IComparable[T]]
	NotBePositive() fluent.IAdditional[T, IComparable[T]]
	BeLowerThan(value T) fluent.IAdditional[T, IComparable[T]]
	BeLowerThanOrEqualTo(value T) fluent.IAdditional[T, IComparable[T]]
	BeGreaterThan(value T) fluent.IAdditional[T, IComparable[T]]
	BeGreaterThanOrEqualTo(value T) fluent.IAdditional[T, IComparable[T]]
}

type Subject

type Subject[T constraints.Integer] struct {
	*Testable[T]
}

func (*Subject[T]) Should

func (s *Subject[T]) Should() IComparable[T]

type Testable

type Testable[T constraints.Integer] struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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