Skip to content

Commit 777e420

Browse files
committed
update
1 parent 88897f6 commit 777e420

2 files changed

Lines changed: 19 additions & 10 deletions

File tree

test/generator_emit_test.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ void main() {
4343
});
4444

4545
group('Conflict-detection branches in interpolator', () {
46-
test('rejects isAccessibleOnlyIfLoggedInAndVerified + '
46+
test(
47+
'rejects isAccessibleOnlyIfLoggedInAndVerified + '
4748
'isAccessibleOnlyIfLoggedIn both true', () {
4849
expect(
4950
bindingsSrc,
@@ -54,7 +55,8 @@ void main() {
5455
);
5556
});
5657

57-
test('rejects isAccessibleOnlyIfLoggedInAndVerified + '
58+
test(
59+
'rejects isAccessibleOnlyIfLoggedInAndVerified + '
5860
'isAccessibleOnlyIfLoggedOut both true', () {
5961
expect(
6062
bindingsSrc,
@@ -65,7 +67,8 @@ void main() {
6567
);
6668
});
6769

68-
test('rejects isAccessibleOnlyIfLoggedIn + isAccessibleOnlyIfLoggedOut '
70+
test(
71+
'rejects isAccessibleOnlyIfLoggedIn + isAccessibleOnlyIfLoggedOut '
6972
'both true', () {
7073
expect(
7174
bindingsSrc,

test/templates_test.dart

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,11 @@ void main() {
101101
'isLoggedIn',
102102
'isLoggedOut',
103103
]) {
104-
expect(src, contains('bool $fn()'),
105-
reason: 'missing helper $fn',);
104+
expect(
105+
src,
106+
contains('bool $fn()'),
107+
reason: 'missing helper $fn',
108+
);
106109
}
107110
});
108111

@@ -117,8 +120,7 @@ void main() {
117120
});
118121

119122
group('Template Dart syntax sanity', () {
120-
File templateFile(String name) =>
121-
File('$_templatesDir/$name');
123+
File templateFile(String name) => File('$_templatesDir/$name');
122124

123125
void expectBalanced(String src, String label) {
124126
// Strip markdown fence + placeholders to make brace counting more
@@ -179,7 +181,8 @@ void main() {
179181
});
180182

181183
group('Interpolator placeholder coverage', () {
182-
final src = File('lib/src/generate_screen_bindings.dart').readAsStringSync();
184+
final src =
185+
File('lib/src/generate_screen_bindings.dart').readAsStringSync();
183186

184187
final wellKnownPlaceholders = {
185188
'___WIDGET_NAME___',
@@ -210,8 +213,11 @@ void main() {
210213

211214
for (final ph in wellKnownPlaceholders) {
212215
test('generate_screen_bindings.dart registers $ph', () {
213-
expect(src, contains("'$ph'"),
214-
reason: '$ph should appear as a registered interpolator key',);
216+
expect(
217+
src,
218+
contains("'$ph'"),
219+
reason: '$ph should appear as a registered interpolator key',
220+
);
215221
});
216222
}
217223
});

0 commit comments

Comments
 (0)