Skip to content

Commit 6f10581

Browse files
committed
refactor: improve formatting
1 parent cc136ea commit 6f10581

2 files changed

Lines changed: 18 additions & 7 deletions

File tree

packages/cloud_firestore/cloud_firestore/pipeline_example/integration_test/pipeline/pipeline_test_helpers.dart

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ import 'package:flutter_test/flutter_test.dart';
77

88
/// Asserts that [snapshot] has exactly [count] results.
99
void expectResultCount(PipelineSnapshot snapshot, int count) {
10-
expect(snapshot.result.length, count,
11-
reason: 'Expected $count pipeline results');
10+
expect(
11+
snapshot.result.length,
12+
count,
13+
reason: 'Expected $count pipeline results',
14+
);
1215
}
1316

1417
/// Asserts that [snapshot] has the same number of results as [expectedData]
@@ -21,8 +24,11 @@ void expectResultsData(
2124
List<Map<String, dynamic>> expectedData, {
2225
bool exactMatch = false,
2326
}) {
24-
expect(snapshot.result.length, expectedData.length,
25-
reason: 'Result count mismatch');
27+
expect(
28+
snapshot.result.length,
29+
expectedData.length,
30+
reason: 'Result count mismatch',
31+
);
2632
for (var i = 0; i < expectedData.length; i++) {
2733
final result = snapshot.result[i];
2834
final data = result.data();
@@ -33,8 +39,11 @@ void expectResultsData(
3339
expect(actual, expected, reason: 'Result $i data mismatch');
3440
} else {
3541
for (final entry in expected.entries) {
36-
expect(actual[entry.key], entry.value,
37-
reason: 'Result $i field ${entry.key}');
42+
expect(
43+
actual[entry.key],
44+
entry.value,
45+
reason: 'Result $i field ${entry.key}',
46+
);
3847
}
3948
}
4049
}

packages/cloud_firestore/cloud_firestore/pipeline_example/lib/main.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import 'dart:typed_data';
1+
// Copyright 2026, the Chromium project authors. Please see the AUTHORS file
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.
24

35
import 'package:cloud_firestore/cloud_firestore.dart';
46
import 'package:firebase_core/firebase_core.dart';

0 commit comments

Comments
 (0)