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

Struct CustomCheck

packer_test/common/check/gadgets.go:211–214  ·  view source on GitHub ↗

CustomCheck is meant to be a one-off checker with a user-provided function. Use this if none of the existing checkers match your use case, and it is not reusable/generic enough for use in other tests.

Source from the content-addressed store, hash-verified

209// Use this if none of the existing checkers match your use case, and it is not
210// reusable/generic enough for use in other tests.
211type CustomCheck struct {
212 name string
213 checkFunc func(stdout, stderr string, err error) error
214}
215
216func (c CustomCheck) Check(stdout, stderr string, err error) error {
217 return c.checkFunc(stdout, stderr, err)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected