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
v28.1.1+incompatible (latest)
Published
Apr 18, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
50 minutes ago

Tools for package owners.