...

Package checker

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

Overview ▾

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

type Compare

Compare defines the interface to compare values

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

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