package output

import "github.com/docker/cli/internal/test/output"

Index

Functions

func Assert

func Assert(t *testing.T, actual string, expectedLines map[int]func(string) error)

Assert checks output lines at specified locations

func Contains

func Contains(expected string) func(string) error

Contains returns whether the line contains the specified string

func Equals

func Equals(expected string) func(string) error

Equals returns whether the line is the same as the specified string

func Prefix

func Prefix(expected string) func(string) error

Prefix returns whether the line has the specified string as prefix

func Suffix

func Suffix(expected string) func(string) error

Suffix returns whether the line has the specified string as suffix

Source Files

output.go

Version
v24.0.2+incompatible
Published
May 25, 2023
Platform
linux/amd64
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.