Documentation ¶
Index ¶
- func Fluent[T constraints.Float](t *testing.T) fluent.IFluent[T, IComparable[T]]
- type Additional
- type Comparable
- func (s *Comparable[T]) Be(value T)
- func (s *Comparable[T]) BeGreaterThan(value T) fluent.IAdditional[T, IComparable[T]]
- func (s *Comparable[T]) BeGreaterThanOrEqualTo(value T) fluent.IAdditional[T, IComparable[T]]
- func (s *Comparable[T]) BeLowerThan(value T) fluent.IAdditional[T, IComparable[T]]
- func (s *Comparable[T]) BeLowerThanOrEqualTo(value T) fluent.IAdditional[T, IComparable[T]]
- func (s *Comparable[T]) BeNegative() fluent.IAdditional[T, IComparable[T]]
- func (s *Comparable[T]) BePositive() fluent.IAdditional[T, IComparable[T]]
- func (s *Comparable[T]) BeZero()
- func (s *Comparable[T]) NotBe(value T) fluent.IAdditional[T, IComparable[T]]
- func (s *Comparable[T]) NotBeNegative() fluent.IAdditional[T, IComparable[T]]
- func (s *Comparable[T]) NotBePositive() fluent.IAdditional[T, IComparable[T]]
- func (s *Comparable[T]) NotBeZero() fluent.IAdditional[T, IComparable[T]]
- type FluentT
- type IComparable
- type Subject
- type Testable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fluent ¶
func Fluent[T constraints.Float](t *testing.T) fluent.IFluent[T, IComparable[T]]
Types ¶
type Additional ¶
type Additional[T constraints.Float] struct { *Comparable[T] }
func (*Additional[T]) And ¶
func (s *Additional[T]) And() IComparable[T]
type Comparable ¶
type Comparable[T constraints.Float] 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.Float] struct { // contains filtered or unexported fields }
type IComparable ¶
type IComparable[T constraints.Float] 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.Float] struct { *Testable[T] }
func (*Subject[T]) Should ¶
func (s *Subject[T]) Should() IComparable[T]
type Testable ¶
type Testable[T constraints.Float] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.