(actual interface{})
| 253 | } |
| 254 | |
| 255 | func (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 | |
| 271 | func (cm CLIMatcher) FailureMessage(interface{}) string { |
| 272 | return cm.wrappedMatcher.FailureMessage(nil) |
no outgoing calls
no test coverage detected