Skip to content

Commit

Permalink
test coverage comment
Browse files Browse the repository at this point in the history
  • Loading branch information
urusai88 committed Dec 30, 2023
1 parent 3dbef41 commit 46ee20b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- run: dart pub get
- run: dart test -j 1 --coverage .coverage --chain-stack-traces
- run: dart run coverage:format_coverage -l -i .coverage -o .coverage/coverage.lcov --report-on=lib
- run: dart run coverage:format_coverage -l -i .coverage -o .coverage/coverage.lcov --report-on=lib --check-ignore

- name: Codecov
uses: codecov/codecov-action@v3
Expand Down
4 changes: 4 additions & 0 deletions lib/src/errors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class TioError implements Error {
@override
final StackTrace? stackTrace;

// coverage:ignore-start
@override
String toString() {
final outputs = ['TioError($message, $type)'];
Expand All @@ -38,6 +39,7 @@ class TioError implements Error {

return outputs.join('\n');
}
// coverage:ignore-end
}

class TioException implements Exception {
Expand All @@ -59,6 +61,7 @@ class TioException implements Exception {

final DioException? dioException;

// coverage:ignore-start
@override
String toString() {
final outputs = ['TioException($message, $type)'];
Expand All @@ -73,4 +76,5 @@ class TioException implements Exception {

return outputs.join('\n');
}
// coverage:ignore-end
}
4 changes: 4 additions & 0 deletions lib/src/response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ final class TioSuccess<T, E> extends TioResponse<T, E> {

final T result;

// coverage:ignore-start
@override
String toString() {
return '''
Expand All @@ -47,6 +48,7 @@ final class TioSuccess<T, E> extends TioResponse<T, E> {
statusCode: ${response?.statusCode}
''';
}
// coverage:ignore-end
}

final class TioFailure<T, E> extends TioResponse<T, E> {
Expand All @@ -55,6 +57,7 @@ final class TioFailure<T, E> extends TioResponse<T, E> {

final E error;

// coverage:ignore-start
@override
String toString() {
return '''
Expand All @@ -63,4 +66,5 @@ final class TioFailure<T, E> extends TioResponse<T, E> {
statusCode: ${response?.statusCode}
''';
}
// coverage:ignore-end
}

0 comments on commit 46ee20b

Please sign in to comment.