From 46ee20bf984bf9f0a99bfc0af32ce0409a7bf048 Mon Sep 17 00:00:00 2001 From: urusai88 Date: Sat, 30 Dec 2023 05:01:09 +0400 Subject: [PATCH] test coverage comment --- .github/workflows/workflow.yml | 2 +- lib/src/errors.dart | 4 ++++ lib/src/response.dart | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index d2e3ee6..d33f4db 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -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 diff --git a/lib/src/errors.dart b/lib/src/errors.dart index 85cd237..e8c5467 100644 --- a/lib/src/errors.dart +++ b/lib/src/errors.dart @@ -27,6 +27,7 @@ class TioError implements Error { @override final StackTrace? stackTrace; +// coverage:ignore-start @override String toString() { final outputs = ['TioError($message, $type)']; @@ -38,6 +39,7 @@ class TioError implements Error { return outputs.join('\n'); } +// coverage:ignore-end } class TioException implements Exception { @@ -59,6 +61,7 @@ class TioException implements Exception { final DioException? dioException; + // coverage:ignore-start @override String toString() { final outputs = ['TioException($message, $type)']; @@ -73,4 +76,5 @@ class TioException implements Exception { return outputs.join('\n'); } +// coverage:ignore-end } diff --git a/lib/src/response.dart b/lib/src/response.dart index 250dd20..f747d3e 100644 --- a/lib/src/response.dart +++ b/lib/src/response.dart @@ -39,6 +39,7 @@ final class TioSuccess extends TioResponse { final T result; + // coverage:ignore-start @override String toString() { return ''' @@ -47,6 +48,7 @@ final class TioSuccess extends TioResponse { statusCode: ${response?.statusCode} '''; } +// coverage:ignore-end } final class TioFailure extends TioResponse { @@ -55,6 +57,7 @@ final class TioFailure extends TioResponse { final E error; + // coverage:ignore-start @override String toString() { return ''' @@ -63,4 +66,5 @@ final class TioFailure extends TioResponse { statusCode: ${response?.statusCode} '''; } +// coverage:ignore-end }