Skip to content

Commit b37ab99

Browse files
tijoforyoucopybara-github
authored andcommitted
Use a newline to join multiple calls in a few verify methods.
This makes it easier to see all the different calls. PiperOrigin-RevId: 736918590
1 parent 119f905 commit b37ab99

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/src/mock.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,10 @@ void verifyNoMoreInteractions(var mock) {
12521252
if (mock is Mock) {
12531253
final unverified = mock._realCalls.where((inv) => !inv.verified).toList();
12541254
if (unverified.isNotEmpty) {
1255-
fail('No more calls expected, but following found: ${unverified.join()}');
1255+
fail(
1256+
'No more calls expected, but following found: '
1257+
'${unverified.join(',\n')}',
1258+
);
12561259
}
12571260
} else {
12581261
_throwMockArgumentError('verifyNoMoreInteractions', mock);
@@ -1264,7 +1267,7 @@ void verifyZeroInteractions(var mock) {
12641267
if (mock._realCalls.isNotEmpty) {
12651268
fail(
12661269
'No interaction expected, but following found: '
1267-
'${mock._realCalls.join()}',
1270+
'${mock._realCalls.join(',\n')}',
12681271
);
12691272
}
12701273
} else {

0 commit comments

Comments
 (0)