MCPcopy
hub / github.com/hashicorp/packer / Tester

Interface Tester

packer_test/common/check/pipe_checker.go:63–65  ·  view source on GitHub ↗

Tester is the end of a pipe for testing purposes. Once multiple commands have been piped together in a pipeline, we can perform some checks on that input, and decide if a test is a success or a failure.

Source from the content-addressed store, hash-verified

61// perform some checks on that input, and decide if a test is a success or a
62// failure.
63type Tester interface {
64 Check(input string) error
65}
66
67// CustomTester allows providing a function to check that the input is what we want
68type CustomTester func(string) error

Callers 1

CheckMethod · 0.65

Implementers 9

PipeCheckerpacker_test/common/check/pipe_checker.
mustSucceedpacker_test/common/check/gadgets.go
mustFailpacker_test/common/check/gadgets.go
pluginsUsedpacker_test/common/check/gadgets.go
dumppacker_test/common/check/gadgets.go
PanicCheckpacker_test/common/check/gadgets.go
CustomCheckpacker_test/common/check/gadgets.go
fileExistspacker_test/common/check/file_gadgets.
fileGlobpacker_test/common/check/file_gadgets.

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…