package checker

import "github.com/docker/docker/integration-cli/checker"

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

Index

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

Source Files

checker.go

Version
v20.10.17+incompatible
Published
Jun 6, 2022
Platform
js/wasm
Imports
3 packages
Last checked
4 seconds ago

Tools for package owners.