OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // To decouple the reporting of errors, and allow for extensibility of | 5 // To decouple the reporting of errors, and allow for extensibility of |
6 // matchers, we make use of some interfaces. | 6 // matchers, we make use of some interfaces. |
7 | 7 |
8 /** | 8 /** |
9 * The ErrorFormatter type is used for functions that | 9 * The ErrorFormatter type is used for functions that |
10 * can be used to build up error reports upon [expect] failures. | 10 * can be used to build up error reports upon [expect] failures. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 * the [reason] (argument from [expect]), some additonal [matchState] | 90 * the [reason] (argument from [expect]), some additonal [matchState] |
91 * generated by the [matcher], and a verbose flag which controls in | 91 * generated by the [matcher], and a verbose flag which controls in |
92 * some cases how much [matchState] information is used. It will use | 92 * some cases how much [matchState] information is used. It will use |
93 * these to create a detailed error message (typically by calling | 93 * these to create a detailed error message (typically by calling |
94 * an [ErrorFormatter]) and then call [fail] with this message. | 94 * an [ErrorFormatter]) and then call [fail] with this message. |
95 */ | 95 */ |
96 void failMatch(actual, Matcher matcher, String reason, | 96 void failMatch(actual, Matcher matcher, String reason, |
97 MatchState matchState, bool verbose); | 97 MatchState matchState, bool verbose); |
98 } | 98 } |
99 | 99 |
OLD | NEW |