MCPcopy
hub / github.com/cloudfoundry/cli / Match

Method Match

integration/v7/isolated/rollback_command_test.go:255–269  ·  view source on GitHub ↗
(actual interface{})

Source from the content-addressed store, hash-verified

253}
254
255func (cm *CLIMatcher) Match(actual interface{}) (bool, error) {
256 for _, line := range cm.Lines {
257 cm.wrappedMatcher = types.GomegaMatcher(Say(line.str, line.args...))
258 success, err := cm.wrappedMatcher.Match(actual)
259 if err != nil {
260 return false, err
261 }
262
263 if success != true {
264 return false, nil
265 }
266 }
267
268 return true, nil
269}
270
271func (cm CLIMatcher) FailureMessage(interface{}) string {
272 return cm.wrappedMatcher.FailureMessage(nil)

Callers 2

ParseV3AppProcessTableFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected