checker

package
v24.0.0-rc.2+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Package checker provides helpers for gotest.tools/assert. Please remove this package whenever possible.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compare

type Compare func(x interface{}) assert.BoolOrComparison

Compare defines the interface to compare values

func Contains

func Contains(y interface{}) Compare

Contains checks if the value contains the given value

func DeepEquals

func DeepEquals(y interface{}) Compare

DeepEquals checks if two values are equal

func Equals

func Equals(y interface{}) Compare

Equals checks if the value is equal to the given value

func False

func False() Compare

False checks if the value is false

func GreaterThan

func GreaterThan(y int) Compare

GreaterThan checks if the value is greater than the given value

func HasLen

func HasLen(y int) Compare

HasLen checks if the value has the expected number of elements

func IsNil

func IsNil() Compare

IsNil checks if the value is nil

func Not

func Not(c Compare) Compare

Not checks if two values are not

func True

func True() Compare

True checks if the value is true

Jump to

Keyboard shortcuts

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