comparator

package
v1.1.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparable

type Comparable interface {
	Cmp(actual string) (bool, string, error)
}

func NewComparable

func NewComparable(expect string, op string, args string) (cmp Comparable, err error)

type Def

type Def struct {
	Op     string `json:"op" yaml:"op"`
	Expect string `json:"expect" yaml:"expect"`

	Config map[string]string `json:"config,omitempty" yaml:"config"`
}

type Float

type Float struct {
	// contains filtered or unexported fields
}

func (*Float) Cmp

func (i *Float) Cmp(actual string) (bool, string, error)

type Int

type Int struct {
	// contains filtered or unexported fields
}

func (*Int) Cmp

func (i *Int) Cmp(actual string) (bool, string, error)

type String

type String struct {
	// contains filtered or unexported fields
}

func (*String) Cmp

func (s *String) Cmp(actual string) (bool, string, error)

Jump to

Keyboard shortcuts

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