Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: coverage:ignore-file #43

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/envied_generator/lib/src/generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class EnviedGenerator extends GeneratorForAnnotation<Envied> {
});

return '''
// coverage:ignore-file
class _${config.name ?? enviedEl.name} {
${lines.toList().join()}
}
Expand Down
6 changes: 6 additions & 0 deletions packages/envied_generator/test/src/generator_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ abstract class Env7 {
}

@ShouldGenerate('''
// coverage:ignore-file
class _Env8 {
static const String testString = 'testString';
static const int testInt = 123;
Expand All @@ -77,6 +78,7 @@ abstract class Env8 {
}

@ShouldGenerate('''
// coverage:ignore-file
class _Env9 {
static const String testString = 'test_string';
}
Expand All @@ -88,6 +90,7 @@ abstract class Env9 {
}

@ShouldGenerate('''
// coverage:ignore-file
class _Env10 {
static const String systemVar = 'system_var';
}
Expand All @@ -99,6 +102,7 @@ abstract class Env10 {
}

@ShouldGenerate('''
// coverage:ignore-file
class _Foo {
static const String testString = 'test_string';
}
Expand Down Expand Up @@ -147,6 +151,7 @@ abstract class Env14 {
}

@ShouldGenerate('''
// coverage:ignore-file
class _Env15 {
static const String testDefaultParam = 'test_';
static const String testString = 'testString';
Expand All @@ -173,6 +178,7 @@ abstract class Env15 {
}

@ShouldGenerate('''
// coverage:ignore-file
class _Env16 {
static const String testDefaultParam = 'test_';
}
Expand Down