From c3ab2f3f90b3968be767503ffcad8900f9817e60 Mon Sep 17 00:00:00 2001 From: Techno-Disaster Date: Sun, 21 Jun 2020 05:14:05 +0530 Subject: [PATCH 01/18] Auth tests --- pubspec.lock | 93 ++++++++++++++++++- pubspec.yaml | 2 +- test/auth_tests/authentication_bloc_test.dart | 87 +++++++++++++++++ test/widget_test.dart | 10 -- 4 files changed, 180 insertions(+), 12 deletions(-) create mode 100644 test/auth_tests/authentication_bloc_test.dart delete mode 100644 test/widget_test.dart diff --git a/pubspec.lock b/pubspec.lock index a8b07b3..7a05500 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -43,6 +43,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "4.0.0" + bloc_test: + dependency: "direct main" + description: + name: bloc_test + url: "https://pub.dartlang.org" + source: hosted + version: "5.1.0" boolean_selector: dependency: transitive description: @@ -176,6 +183,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.1.1" + coverage: + dependency: transitive + description: + name: coverage + url: "https://pub.dartlang.org" + source: hosted + version: "0.14.0" crypto: dependency: transitive description: @@ -373,6 +387,20 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.9.6+3" + mockito: + dependency: transitive + description: + name: mockito + url: "https://pub.dartlang.org" + source: hosted + version: "4.1.1" + multi_server_socket: + dependency: transitive + description: + name: multi_server_socket + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.2" nested: dependency: transitive description: @@ -394,6 +422,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.1.0" + node_preamble: + dependency: transitive + description: + name: node_preamble + url: "https://pub.dartlang.org" + source: hosted + version: "1.4.12" package_config: dependency: transitive description: @@ -478,6 +513,20 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.7.5" + shelf_packages_handler: + dependency: transitive + description: + name: shelf_packages_handler + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.0" + shelf_static: + dependency: transitive + description: + name: shelf_static + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.8" shelf_web_socket: dependency: transitive description: @@ -497,6 +546,20 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.9.5" + source_map_stack_trace: + dependency: transitive + description: + name: source_map_stack_trace + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.0" + source_maps: + dependency: transitive + description: + name: source_maps + url: "https://pub.dartlang.org" + source: hosted + version: "0.10.9" source_span: dependency: transitive description: @@ -539,13 +602,27 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.1.0" + test: + dependency: transitive + description: + name: test + url: "https://pub.dartlang.org" + source: hosted + version: "1.14.7" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.15" + version: "0.2.16" + test_core: + dependency: transitive + description: + name: test_core + url: "https://pub.dartlang.org" + source: hosted + version: "0.3.7" timing: dependency: transitive description: @@ -602,6 +679,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.0.8" + vm_service: + dependency: transitive + description: + name: vm_service + url: "https://pub.dartlang.org" + source: hosted + version: "4.1.0" watcher: dependency: transitive description: @@ -616,6 +700,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.1.0" + webkit_inspection_protocol: + dependency: transitive + description: + name: webkit_inspection_protocol + url: "https://pub.dartlang.org" + source: hosted + version: "0.7.3" xml: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 0249bf2..a1bbc50 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -36,7 +36,7 @@ dependencies: bloc: ^4.0.0 flutter_bloc: ^4.0.0 chopper: ^3.0.2 - + bloc_test: ^5.1.0 # plugins not needed in app dev_dependencies: build_runner: ^1.9.0 diff --git a/test/auth_tests/authentication_bloc_test.dart b/test/auth_tests/authentication_bloc_test.dart new file mode 100644 index 0000000..6855afe --- /dev/null +++ b/test/auth_tests/authentication_bloc_test.dart @@ -0,0 +1,87 @@ +import 'package:flutter_test/flutter_test.dart'; + +import 'package:mockito/mockito.dart'; +import 'package:mentorship_client/remote/repositories/auth_repository.dart'; +import 'package:mentorship_client/auth/bloc.dart'; + +class MockUserRepository extends Mock implements AuthRepository {} + +void main() { + AuthBloc authenticationBloc; + MockUserRepository userRepository; + + setUp(() { + userRepository = MockUserRepository(); + authenticationBloc = AuthBloc(userRepository); + }); + + tearDown(() { + authenticationBloc?.close(); + }); + + test('initial state is correct', () { + expect(authenticationBloc.initialState, AuthUninitialized()); + }); + + test('close does not emit new states', () { + expectLater( + authenticationBloc, + emitsInOrder([AuthUninitialized(), emitsDone]), + ); + authenticationBloc.close(); + }); + + group('AppStarted', () { + test('emits [uninitialized, unauthenticated] for invalid token', () { + final expectedResponse = [ + AuthUninitialized(), + AuthUnauthenticated(), + ]; + + when(userRepository.getToken()).thenAnswer((_) => Future.value(null)); + + expectLater( + authenticationBloc, + emitsInOrder(expectedResponse), + ); + + authenticationBloc.add(AppStarted()); + }); + }); + group('LoggedIn', () { + test('emits [uninitialized, loading, authenticated] when token is persisted', () { + final expectedResponse = [ + AuthUninitialized(), + AuthInProgress(), + AuthAuthenticated(), + ]; + + expectLater( + authenticationBloc, + emitsInOrder(expectedResponse), + ); + + authenticationBloc.add(JustLoggedIn( + 'instance.token', + )); + }); + }); + group('LoggedOut', () { + test('emits [uninitialized, loading, unauthenticated] when token is deleted', () { + final expectedResponse = [ + AuthUninitialized(), + AuthInProgress(), + AuthUnauthenticated( + justLoggedOut: true, + ), + ]; + + expectLater( + authenticationBloc, + emitsInOrder(expectedResponse), + ); + + authenticationBloc.add(JustLoggedOut()); + }); + }); +} diff --git a/test/widget_test.dart b/test/widget_test.dart deleted file mode 100644 index 2a64818..0000000 --- a/test/widget_test.dart +++ /dev/null @@ -1,10 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility that Flutter provides. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - - - -void main() {} From 5a3561e070d5021701400bc307595b0454da93f5 Mon Sep 17 00:00:00 2001 From: Techno-Disaster Date: Sun, 21 Jun 2020 09:14:13 +0530 Subject: [PATCH 02/18] Login tests --- lib/screens/login/bloc/login_bloc.dart | 3 +- lib/screens/login/bloc/login_state.dart | 2 + test/login_test/login_bloc_test.dart | 108 ++++++++++++++++++++++++ 3 files changed, 111 insertions(+), 2 deletions(-) create mode 100644 test/login_test/login_bloc_test.dart diff --git a/lib/screens/login/bloc/login_bloc.dart b/lib/screens/login/bloc/login_bloc.dart index c865312..c2953e4 100644 --- a/lib/screens/login/bloc/login_bloc.dart +++ b/lib/screens/login/bloc/login_bloc.dart @@ -1,7 +1,6 @@ import 'package:bloc/bloc.dart'; import 'package:mentorship_client/auth/auth_bloc.dart'; import 'package:mentorship_client/auth/bloc.dart'; -import 'package:mentorship_client/failure.dart'; import 'package:mentorship_client/remote/repositories/auth_repository.dart'; import 'package:mentorship_client/screens/login/bloc/login_event.dart'; import 'package:mentorship_client/screens/login/bloc/login_state.dart'; @@ -23,7 +22,7 @@ class LoginBloc extends Bloc { final token = await authRepository.login(event.login); yield LoginSuccess(); authBloc.add(JustLoggedIn(token.token)); - } on Failure catch (failure) { + } catch (failure) { yield LoginFailure(failure.message); } } diff --git a/lib/screens/login/bloc/login_state.dart b/lib/screens/login/bloc/login_state.dart index a8539c8..33035e6 100644 --- a/lib/screens/login/bloc/login_state.dart +++ b/lib/screens/login/bloc/login_state.dart @@ -20,4 +20,6 @@ class LoginFailure extends LoginState { @override List get props => [message]; + @override + String toString() => 'LoginFailure { error: $message }'; } diff --git a/test/login_test/login_bloc_test.dart b/test/login_test/login_bloc_test.dart new file mode 100644 index 0000000..6e589c6 --- /dev/null +++ b/test/login_test/login_bloc_test.dart @@ -0,0 +1,108 @@ +import 'package:bloc_test/bloc_test.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:mentorship_client/remote/requests/login.dart'; +import 'package:mentorship_client/remote/responses/auth_token.dart'; +import 'package:mentorship_client/screens/login/bloc/bloc.dart'; + +import 'package:mockito/mockito.dart'; +import 'package:mentorship_client/remote/repositories/auth_repository.dart'; +import 'package:mentorship_client/auth/bloc.dart'; + +class MockUserRepository extends Mock implements AuthRepository {} + +class MockAuthenticationBloc extends Mock implements AuthBloc {} + +void main() { + LoginBloc loginBloc; + + MockUserRepository userRepository; + MockAuthenticationBloc authenticationBloc; + Login login; + AuthToken authToken; + setUp(() { + userRepository = MockUserRepository(); + authenticationBloc = MockAuthenticationBloc(); + loginBloc = LoginBloc( + userRepository, + authenticationBloc, + ); + login = Login( + username: 'valid.username', + password: 'valid.password', + ); + + authToken = AuthToken( + 'valid.token', + 7, + ); + }); + + tearDown(() { + loginBloc?.close(); + authenticationBloc?.close(); + }); + + test('initial state is correct', () { + expect(LoginInitial(), loginBloc.initialState); + }); + + test('close does not emit new states', () { + expectLater( + loginBloc, + emitsInOrder([LoginInitial(), emitsDone]), + ); + loginBloc.close(); + }); + + group('LoginButtonPressed', () { + blocTest( + 'emits [LoginLoading, LoginSuccess] and token on success', + build: () async { + when(userRepository.login( + login, + )).thenAnswer((_) => Future.value( + authToken, + )); + return loginBloc; + }, + act: (bloc) => bloc.add( + LoginButtonPressed( + login, + ), + ), + expect: [ + LoginInProgress(), + LoginSuccess(), + ], + verify: (_) async { + verify(authenticationBloc.add(JustLoggedIn( + authToken.token, + ))).called(1); + }, + ); + + blocTest( + 'emits [LoginLoading, LoginFailure] on failure', + build: () async { + when(userRepository.login( + login, + )).thenThrow(Exception('login-error')); + return loginBloc; + }, + act: (bloc) => bloc.add( + LoginButtonPressed( + login, + ), + ), + expect: [ + LoginInProgress(), + LoginFailure( + 'login-error', + ), + ], + verify: (_) async { + verifyNever(authenticationBloc.add(any)); + }, + ); + }); +} From a61a8bbbe2d1a0265b1b05834f16f0e10e1f5b2f Mon Sep 17 00:00:00 2001 From: Techno-Disaster Date: Sun, 21 Jun 2020 09:26:55 +0530 Subject: [PATCH 03/18] add coverage to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index b4a256a..873a5f4 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,7 @@ # Web related lib/generated_plugin_registrant.dart +coverage/ # Exceptions to above rules. !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages From 5cc5799d39951c2b2fdfe85f900909008b6e9126 Mon Sep 17 00:00:00 2001 From: Techno-Disaster Date: Sun, 21 Jun 2020 10:05:01 +0530 Subject: [PATCH 04/18] auth and login event, state tests --- .../auth_tests/authentication_event_test.dart | 39 +++++++++++++++++++ test/login_test/login_event_test.dart | 28 +++++++++++++ test/login_test/login_state_test.dart | 31 +++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 test/auth_tests/authentication_event_test.dart create mode 100644 test/login_test/login_event_test.dart create mode 100644 test/login_test/login_state_test.dart diff --git a/test/auth_tests/authentication_event_test.dart b/test/auth_tests/authentication_event_test.dart new file mode 100644 index 0000000..bc7f01a --- /dev/null +++ b/test/auth_tests/authentication_event_test.dart @@ -0,0 +1,39 @@ +import 'package:mentorship_client/auth/bloc.dart'; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + group('AppStarted', () { + group('AppStarted', () { + test('props are []', () { + expect(AppStarted().props, []); + }); + + test('toString is "AppStarted"', () { + expect(AppStarted().toString(), 'AppStarted'); + }); + }); + + group('JustLoggedIn', () { + test('props are [token]', () { + expect(JustLoggedIn('token').props, ['token']); + }); + + test('toString is "LoggedIn { token: token }"', () { + expect( + JustLoggedIn('token').toString(), + 'LoggedIn { token: token }', + ); + }); + }); + + group('JustLoggedOut', () { + test('props are []', () { + expect(JustLoggedOut().props, []); + }); + + test('toString is "AuthenticationLoggedOut"', () { + expect(JustLoggedOut().toString(), 'JustLoggedOut'); + }); + }); + }); +} diff --git a/test/login_test/login_event_test.dart b/test/login_test/login_event_test.dart new file mode 100644 index 0000000..5352dc3 --- /dev/null +++ b/test/login_test/login_event_test.dart @@ -0,0 +1,28 @@ +import 'package:flutter_test/flutter_test.dart'; +import 'package:mentorship_client/remote/requests/login.dart'; +import 'package:mentorship_client/screens/login/bloc/bloc.dart'; + + +void main() { + Login login; + setUp(() { + login = Login( + username: 'valid.username', + password: 'valid.password', + ); + }); + group('LoginEvent', () { + group('LoginButtonPressed', () { + test('props are [username, password]', () { + expect( + LoginButtonPressed( + login, + ).props, + [ + login, + ], + ); + }); + }); + }); +} diff --git a/test/login_test/login_state_test.dart b/test/login_test/login_state_test.dart new file mode 100644 index 0000000..0d79cc5 --- /dev/null +++ b/test/login_test/login_state_test.dart @@ -0,0 +1,31 @@ +import 'package:flutter_test/flutter_test.dart'; +import 'package:mentorship_client/screens/login/bloc/bloc.dart'; + +void main() { + group('LoginState', () { + group('LoginInitial', () { + test('toString is LoginInitial', () { + expect(LoginInitial().toString(), 'LoginInitial'); + }); + }); + + group('LoginInProgress', () { + test('toString is LoginLoading', () { + expect(LoginInProgress().toString(), 'LoginInProgress'); + }); + }); + + group('LoginFailure', () { + test('props are [error]', () { + expect(LoginFailure('message').props, ['message']); + }); + + test('toString is LoginFailure { error: message }', () { + expect( + LoginFailure('message').toString(), + 'LoginFailure { error: message }', + ); + }); + }); + }); +} From b3c5ed933475112627d3f8fe5a480c57622f2d68 Mon Sep 17 00:00:00 2001 From: Techno-Disaster Date: Sun, 21 Jun 2020 17:39:18 +0530 Subject: [PATCH 05/18] update github and travis --- .github/workflows/main.yml | 2 ++ .travis.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 38a8399..86b5af5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,6 +24,7 @@ jobs: - run: git clone https://github.com/flutter/flutter.git --depth 1 -b v1.15.17 _flutter - run: echo "::add-path::$GITHUB_WORKSPACE/_flutter/bin" - run: flutter pub get + - run: flutter test working-directory: ./ - run: flutter build ios --no-codesign buildandroid: @@ -37,5 +38,6 @@ jobs: - run: git clone https://github.com/flutter/flutter.git --depth 1 -b v1.15.17 _flutter - run: echo "::add-path::$GITHUB_WORKSPACE/_flutter/bin" - run: flutter pub get + - run: flutter test working-directory: ./ - run: flutter build appbundle diff --git a/.travis.yml b/.travis.yml index 2959247..8e7537e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,8 @@ before_script: - chmod +x generate-apks.sh script: - ./flutter/bin/flutter build apk + - ./flutter/bin/flutter test + after_success: - ./generate-apks.sh cache: From ce70baf8aa1925137762d17e84a484d4e4ab83ea Mon Sep 17 00:00:00 2001 From: Techno-Disaster Date: Sun, 21 Jun 2020 17:40:32 +0530 Subject: [PATCH 06/18] update github ci --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 86b5af5..3d8e100 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ on: - 'android/**' jobs: buildios: - name: Build iOS + name: Build and test iOS builds runs-on: macos-latest steps: - uses: actions/checkout@v2 @@ -28,7 +28,7 @@ jobs: working-directory: ./ - run: flutter build ios --no-codesign buildandroid: - name: Build Android + name: Build and test Android builds runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From d07e7c5f156f7077f23b183123188916e405649f Mon Sep 17 00:00:00 2001 From: Jayesh Nirve Date: Sun, 21 Jun 2020 18:18:27 +0530 Subject: [PATCH 07/18] add codecov --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3d8e100..1db28a4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,3 +41,7 @@ jobs: - run: flutter test working-directory: ./ - run: flutter build appbundle + - uses: codecov/codecov-action@v1.0.2 + with: + token: ${{secrets.CODECOV_TOKEN}} + file: ./coverage/lcov.info From edf975dac53ecb9db560ab26ea263b6e670a959c Mon Sep 17 00:00:00 2001 From: Jayesh Nirve Date: Sun, 21 Jun 2020 18:22:36 +0530 Subject: [PATCH 08/18] add codecov badge --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 581efdb..37e1f0c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,10 @@ | Branch | [Travis](https://travis-ci.org/) | | :----------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------: | -| [develop](https://github.com/anitab-org/mentorship-flutter/tree/develop) | [![Build Status](https://travis-ci.com/anitab-org/mentorship-flutter.svg?branch=develop)](https://travis-ci.com/anitab-org/mentorship-flutter) | +| [develop](https://github.com/anitab-org/mentorship-flutter/tree/develop) | [![Build Status](https://travis-ci.com/anitab-org/mentorship-flutter.svg?branch=develop)](https://travis-ci.com/anitab-org/mentorship-flutter) | + + +[![codecov](https://codecov.io/gh/Techno-Disaster/mentorship-flutter/branch/master/graph/badge.svg)](https://codecov.io/gh/Techno-Disaster/mentorship-flutter) Mentorship System is an application that allows women in tech to mentor each other, on career development topics, through 1:1 relations for a certain period of time. From 83b101abdea9166ebcd75b8a5b4c200ccd2cd98f Mon Sep 17 00:00:00 2001 From: Jayesh Nirve Date: Sun, 21 Jun 2020 18:24:52 +0530 Subject: [PATCH 09/18] coverage tests --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1db28a4..fc2018e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,7 +24,7 @@ jobs: - run: git clone https://github.com/flutter/flutter.git --depth 1 -b v1.15.17 _flutter - run: echo "::add-path::$GITHUB_WORKSPACE/_flutter/bin" - run: flutter pub get - - run: flutter test + - run: flutter test --coverage working-directory: ./ - run: flutter build ios --no-codesign buildandroid: @@ -38,7 +38,7 @@ jobs: - run: git clone https://github.com/flutter/flutter.git --depth 1 -b v1.15.17 _flutter - run: echo "::add-path::$GITHUB_WORKSPACE/_flutter/bin" - run: flutter pub get - - run: flutter test + - run: flutter test --coverage working-directory: ./ - run: flutter build appbundle - uses: codecov/codecov-action@v1.0.2 From d6c8ac30bdb8d759ca6a10d7be0bd18f9dc09ec7 Mon Sep 17 00:00:00 2001 From: Jayesh Nirve Date: Sun, 21 Jun 2020 18:25:15 +0530 Subject: [PATCH 10/18] Update .gitignore --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index 873a5f4..b4a256a 100644 --- a/.gitignore +++ b/.gitignore @@ -32,7 +32,6 @@ # Web related lib/generated_plugin_registrant.dart -coverage/ # Exceptions to above rules. !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages From 762a5ec6b8582006e82cd2204f4b3cef48a34b53 Mon Sep 17 00:00:00 2001 From: Techno-Disaster Date: Sun, 21 Jun 2020 18:26:36 +0530 Subject: [PATCH 11/18] coverage file --- coverage/amber.png | Bin 0 -> 141 bytes coverage/emerald.png | Bin 0 -> 141 bytes coverage/gcov.css | 519 ++++++++++++++++++ coverage/glass.png | Bin 0 -> 167 bytes coverage/index-sort-f.html | 173 ++++++ coverage/index-sort-l.html | 173 ++++++ coverage/index.html | 173 ++++++ coverage/lcov.info | 383 +++++++++++++ .../lib/auth/auth_bloc.dart.func-sort-c.html | 72 +++ coverage/lib/auth/auth_bloc.dart.func.html | 72 +++ coverage/lib/auth/auth_bloc.dart.gcov.html | 117 ++++ .../lib/auth/auth_event.dart.func-sort-c.html | 72 +++ coverage/lib/auth/auth_event.dart.func.html | 72 +++ coverage/lib/auth/auth_event.dart.gcov.html | 100 ++++ .../lib/auth/auth_state.dart.func-sort-c.html | 72 +++ coverage/lib/auth/auth_state.dart.func.html | 72 +++ coverage/lib/auth/auth_state.dart.gcov.html | 102 ++++ coverage/lib/auth/index-sort-f.html | 113 ++++ coverage/lib/auth/index-sort-l.html | 113 ++++ coverage/lib/auth/index.html | 113 ++++ coverage/lib/failure.dart.func-sort-c.html | 72 +++ coverage/lib/failure.dart.func.html | 72 +++ coverage/lib/failure.dart.gcov.html | 89 +++ coverage/lib/index-sort-f.html | 93 ++++ coverage/lib/index-sort-l.html | 93 ++++ coverage/lib/index.html | 93 ++++ .../remote/api_manager.dart.func-sort-c.html | 72 +++ .../lib/remote/api_manager.dart.func.html | 72 +++ .../lib/remote/api_manager.dart.gcov.html | 117 ++++ .../auth_interceptor.dart.func-sort-c.html | 72 +++ .../remote/auth_interceptor.dart.func.html | 72 +++ .../remote/auth_interceptor.dart.gcov.html | 94 ++++ coverage/lib/remote/index-sort-f.html | 103 ++++ coverage/lib/remote/index-sort-l.html | 103 ++++ coverage/lib/remote/index.html | 103 ++++ coverage/lib/remote/models/index-sort-f.html | 93 ++++ coverage/lib/remote/models/index-sort-l.html | 93 ++++ coverage/lib/remote/models/index.html | 93 ++++ .../remote/models/user.dart.func-sort-c.html | 72 +++ .../lib/remote/models/user.dart.func.html | 72 +++ .../lib/remote/models/user.dart.gcov.html | 153 ++++++ .../auth_repository.dart.func-sort-c.html | 72 +++ .../auth_repository.dart.func.html | 72 +++ .../auth_repository.dart.gcov.html | 127 +++++ .../lib/remote/repositories/index-sort-f.html | 93 ++++ .../lib/remote/repositories/index-sort-l.html | 93 ++++ coverage/lib/remote/repositories/index.html | 93 ++++ .../change_password.dart.func-sort-c.html | 72 +++ .../requests/change_password.dart.func.html | 72 +++ .../requests/change_password.dart.gcov.html | 98 ++++ .../lib/remote/requests/index-sort-f.html | 133 +++++ .../lib/remote/requests/index-sort-l.html | 133 +++++ coverage/lib/remote/requests/index.html | 133 +++++ .../requests/login.dart.func-sort-c.html | 72 +++ .../lib/remote/requests/login.dart.func.html | 72 +++ .../lib/remote/requests/login.dart.gcov.html | 89 +++ .../requests/register.dart.func-sort-c.html | 72 +++ .../remote/requests/register.dart.func.html | 72 +++ .../remote/requests/register.dart.gcov.html | 121 ++++ .../relation_requests.dart.func-sort-c.html | 72 +++ .../requests/relation_requests.dart.func.html | 72 +++ .../requests/relation_requests.dart.gcov.html | 105 ++++ .../task_request.dart.func-sort-c.html | 72 +++ .../requests/task_request.dart.func.html | 72 +++ .../requests/task_request.dart.gcov.html | 92 ++++ .../auth_token.dart.func-sort-c.html | 72 +++ .../responses/auth_token.dart.func.html | 72 +++ .../responses/auth_token.dart.gcov.html | 88 +++ .../lib/remote/responses/index-sort-f.html | 93 ++++ .../lib/remote/responses/index-sort-l.html | 93 ++++ coverage/lib/remote/responses/index.html | 93 ++++ ...auth_service.chopper.dart.func-sort-c.html | 72 +++ .../auth_service.chopper.dart.func.html | 72 +++ .../auth_service.chopper.dart.gcov.html | 110 ++++ .../auth_service.dart.func-sort-c.html | 72 +++ .../services/auth_service.dart.func.html | 72 +++ .../services/auth_service.dart.gcov.html | 105 ++++ .../lib/remote/services/index-sort-f.html | 163 ++++++ .../lib/remote/services/index-sort-l.html | 163 ++++++ coverage/lib/remote/services/index.html | 163 ++++++ ...tion_service.chopper.dart.func-sort-c.html | 72 +++ .../relation_service.chopper.dart.func.html | 72 +++ .../relation_service.chopper.dart.gcov.html | 145 +++++ .../relation_service.dart.func-sort-c.html | 72 +++ .../services/relation_service.dart.func.html | 72 +++ .../services/relation_service.dart.gcov.html | 129 +++++ ...task_service.chopper.dart.func-sort-c.html | 72 +++ .../task_service.chopper.dart.func.html | 72 +++ .../task_service.chopper.dart.gcov.html | 126 +++++ .../task_service.dart.func-sort-c.html | 72 +++ .../services/task_service.dart.func.html | 72 +++ .../services/task_service.dart.gcov.html | 118 ++++ ...user_service.chopper.dart.func-sort-c.html | 72 +++ .../user_service.chopper.dart.func.html | 72 +++ .../user_service.chopper.dart.gcov.html | 139 +++++ .../user_service.dart.func-sort-c.html | 72 +++ .../services/user_service.dart.func.html | 72 +++ .../services/user_service.dart.gcov.html | 128 +++++ .../lib/screens/login/bloc/index-sort-f.html | 113 ++++ .../lib/screens/login/bloc/index-sort-l.html | 113 ++++ coverage/lib/screens/login/bloc/index.html | 113 ++++ .../bloc/login_bloc.dart.func-sort-c.html | 72 +++ .../login/bloc/login_bloc.dart.func.html | 72 +++ .../login/bloc/login_bloc.dart.gcov.html | 106 ++++ .../bloc/login_event.dart.func-sort-c.html | 72 +++ .../login/bloc/login_event.dart.func.html | 72 +++ .../login/bloc/login_event.dart.gcov.html | 91 +++ .../bloc/login_state.dart.func-sort-c.html | 72 +++ .../login/bloc/login_state.dart.func.html | 72 +++ .../login/bloc/login_state.dart.gcov.html | 101 ++++ coverage/ruby.png | Bin 0 -> 141 bytes coverage/snow.png | Bin 0 -> 141 bytes coverage/updown.png | Bin 0 -> 117 bytes 113 files changed, 10802 insertions(+) create mode 100644 coverage/amber.png create mode 100644 coverage/emerald.png create mode 100644 coverage/gcov.css create mode 100644 coverage/glass.png create mode 100644 coverage/index-sort-f.html create mode 100644 coverage/index-sort-l.html create mode 100644 coverage/index.html create mode 100644 coverage/lcov.info create mode 100644 coverage/lib/auth/auth_bloc.dart.func-sort-c.html create mode 100644 coverage/lib/auth/auth_bloc.dart.func.html create mode 100644 coverage/lib/auth/auth_bloc.dart.gcov.html create mode 100644 coverage/lib/auth/auth_event.dart.func-sort-c.html create mode 100644 coverage/lib/auth/auth_event.dart.func.html create mode 100644 coverage/lib/auth/auth_event.dart.gcov.html create mode 100644 coverage/lib/auth/auth_state.dart.func-sort-c.html create mode 100644 coverage/lib/auth/auth_state.dart.func.html create mode 100644 coverage/lib/auth/auth_state.dart.gcov.html create mode 100644 coverage/lib/auth/index-sort-f.html create mode 100644 coverage/lib/auth/index-sort-l.html create mode 100644 coverage/lib/auth/index.html create mode 100644 coverage/lib/failure.dart.func-sort-c.html create mode 100644 coverage/lib/failure.dart.func.html create mode 100644 coverage/lib/failure.dart.gcov.html create mode 100644 coverage/lib/index-sort-f.html create mode 100644 coverage/lib/index-sort-l.html create mode 100644 coverage/lib/index.html create mode 100644 coverage/lib/remote/api_manager.dart.func-sort-c.html create mode 100644 coverage/lib/remote/api_manager.dart.func.html create mode 100644 coverage/lib/remote/api_manager.dart.gcov.html create mode 100644 coverage/lib/remote/auth_interceptor.dart.func-sort-c.html create mode 100644 coverage/lib/remote/auth_interceptor.dart.func.html create mode 100644 coverage/lib/remote/auth_interceptor.dart.gcov.html create mode 100644 coverage/lib/remote/index-sort-f.html create mode 100644 coverage/lib/remote/index-sort-l.html create mode 100644 coverage/lib/remote/index.html create mode 100644 coverage/lib/remote/models/index-sort-f.html create mode 100644 coverage/lib/remote/models/index-sort-l.html create mode 100644 coverage/lib/remote/models/index.html create mode 100644 coverage/lib/remote/models/user.dart.func-sort-c.html create mode 100644 coverage/lib/remote/models/user.dart.func.html create mode 100644 coverage/lib/remote/models/user.dart.gcov.html create mode 100644 coverage/lib/remote/repositories/auth_repository.dart.func-sort-c.html create mode 100644 coverage/lib/remote/repositories/auth_repository.dart.func.html create mode 100644 coverage/lib/remote/repositories/auth_repository.dart.gcov.html create mode 100644 coverage/lib/remote/repositories/index-sort-f.html create mode 100644 coverage/lib/remote/repositories/index-sort-l.html create mode 100644 coverage/lib/remote/repositories/index.html create mode 100644 coverage/lib/remote/requests/change_password.dart.func-sort-c.html create mode 100644 coverage/lib/remote/requests/change_password.dart.func.html create mode 100644 coverage/lib/remote/requests/change_password.dart.gcov.html create mode 100644 coverage/lib/remote/requests/index-sort-f.html create mode 100644 coverage/lib/remote/requests/index-sort-l.html create mode 100644 coverage/lib/remote/requests/index.html create mode 100644 coverage/lib/remote/requests/login.dart.func-sort-c.html create mode 100644 coverage/lib/remote/requests/login.dart.func.html create mode 100644 coverage/lib/remote/requests/login.dart.gcov.html create mode 100644 coverage/lib/remote/requests/register.dart.func-sort-c.html create mode 100644 coverage/lib/remote/requests/register.dart.func.html create mode 100644 coverage/lib/remote/requests/register.dart.gcov.html create mode 100644 coverage/lib/remote/requests/relation_requests.dart.func-sort-c.html create mode 100644 coverage/lib/remote/requests/relation_requests.dart.func.html create mode 100644 coverage/lib/remote/requests/relation_requests.dart.gcov.html create mode 100644 coverage/lib/remote/requests/task_request.dart.func-sort-c.html create mode 100644 coverage/lib/remote/requests/task_request.dart.func.html create mode 100644 coverage/lib/remote/requests/task_request.dart.gcov.html create mode 100644 coverage/lib/remote/responses/auth_token.dart.func-sort-c.html create mode 100644 coverage/lib/remote/responses/auth_token.dart.func.html create mode 100644 coverage/lib/remote/responses/auth_token.dart.gcov.html create mode 100644 coverage/lib/remote/responses/index-sort-f.html create mode 100644 coverage/lib/remote/responses/index-sort-l.html create mode 100644 coverage/lib/remote/responses/index.html create mode 100644 coverage/lib/remote/services/auth_service.chopper.dart.func-sort-c.html create mode 100644 coverage/lib/remote/services/auth_service.chopper.dart.func.html create mode 100644 coverage/lib/remote/services/auth_service.chopper.dart.gcov.html create mode 100644 coverage/lib/remote/services/auth_service.dart.func-sort-c.html create mode 100644 coverage/lib/remote/services/auth_service.dart.func.html create mode 100644 coverage/lib/remote/services/auth_service.dart.gcov.html create mode 100644 coverage/lib/remote/services/index-sort-f.html create mode 100644 coverage/lib/remote/services/index-sort-l.html create mode 100644 coverage/lib/remote/services/index.html create mode 100644 coverage/lib/remote/services/relation_service.chopper.dart.func-sort-c.html create mode 100644 coverage/lib/remote/services/relation_service.chopper.dart.func.html create mode 100644 coverage/lib/remote/services/relation_service.chopper.dart.gcov.html create mode 100644 coverage/lib/remote/services/relation_service.dart.func-sort-c.html create mode 100644 coverage/lib/remote/services/relation_service.dart.func.html create mode 100644 coverage/lib/remote/services/relation_service.dart.gcov.html create mode 100644 coverage/lib/remote/services/task_service.chopper.dart.func-sort-c.html create mode 100644 coverage/lib/remote/services/task_service.chopper.dart.func.html create mode 100644 coverage/lib/remote/services/task_service.chopper.dart.gcov.html create mode 100644 coverage/lib/remote/services/task_service.dart.func-sort-c.html create mode 100644 coverage/lib/remote/services/task_service.dart.func.html create mode 100644 coverage/lib/remote/services/task_service.dart.gcov.html create mode 100644 coverage/lib/remote/services/user_service.chopper.dart.func-sort-c.html create mode 100644 coverage/lib/remote/services/user_service.chopper.dart.func.html create mode 100644 coverage/lib/remote/services/user_service.chopper.dart.gcov.html create mode 100644 coverage/lib/remote/services/user_service.dart.func-sort-c.html create mode 100644 coverage/lib/remote/services/user_service.dart.func.html create mode 100644 coverage/lib/remote/services/user_service.dart.gcov.html create mode 100644 coverage/lib/screens/login/bloc/index-sort-f.html create mode 100644 coverage/lib/screens/login/bloc/index-sort-l.html create mode 100644 coverage/lib/screens/login/bloc/index.html create mode 100644 coverage/lib/screens/login/bloc/login_bloc.dart.func-sort-c.html create mode 100644 coverage/lib/screens/login/bloc/login_bloc.dart.func.html create mode 100644 coverage/lib/screens/login/bloc/login_bloc.dart.gcov.html create mode 100644 coverage/lib/screens/login/bloc/login_event.dart.func-sort-c.html create mode 100644 coverage/lib/screens/login/bloc/login_event.dart.func.html create mode 100644 coverage/lib/screens/login/bloc/login_event.dart.gcov.html create mode 100644 coverage/lib/screens/login/bloc/login_state.dart.func-sort-c.html create mode 100644 coverage/lib/screens/login/bloc/login_state.dart.func.html create mode 100644 coverage/lib/screens/login/bloc/login_state.dart.gcov.html create mode 100644 coverage/ruby.png create mode 100644 coverage/snow.png create mode 100644 coverage/updown.png diff --git a/coverage/amber.png b/coverage/amber.png new file mode 100644 index 0000000000000000000000000000000000000000..2cab170d8359081983a4e343848dfe06bc490f12 GIT binary patch literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga>?NMQuI!iC1^G2tW}LqE04T&+ z;1OBOz`!j8!i<;h*8KqrvZOouIx;Y9?C1WI$O`1M1^9%x{(levWG?NMQuI!iC1^Jb!lvI6;R0X`wF(yt=9xVZRt1vCRixIA4P dLn>}1Cji+@42)0J?}79&c)I$ztaD0e0sy@GAL0N2 literal 0 HcmV?d00001 diff --git a/coverage/gcov.css b/coverage/gcov.css new file mode 100644 index 0000000..bfd0a83 --- /dev/null +++ b/coverage/gcov.css @@ -0,0 +1,519 @@ +/* All views: initial background and text color */ +body +{ + color: #000000; + background-color: #FFFFFF; +} + +/* All views: standard link format*/ +a:link +{ + color: #284FA8; + text-decoration: underline; +} + +/* All views: standard link - visited format */ +a:visited +{ + color: #00CB40; + text-decoration: underline; +} + +/* All views: standard link - activated format */ +a:active +{ + color: #FF0040; + text-decoration: underline; +} + +/* All views: main title format */ +td.title +{ + text-align: center; + padding-bottom: 10px; + font-family: sans-serif; + font-size: 20pt; + font-style: italic; + font-weight: bold; +} + +/* All views: header item format */ +td.headerItem +{ + text-align: right; + padding-right: 6px; + font-family: sans-serif; + font-weight: bold; + vertical-align: top; + white-space: nowrap; +} + +/* All views: header item value format */ +td.headerValue +{ + text-align: left; + color: #284FA8; + font-family: sans-serif; + font-weight: bold; + white-space: nowrap; +} + +/* All views: header item coverage table heading */ +td.headerCovTableHead +{ + text-align: center; + padding-right: 6px; + padding-left: 6px; + padding-bottom: 0px; + font-family: sans-serif; + font-size: 80%; + white-space: nowrap; +} + +/* All views: header item coverage table entry */ +td.headerCovTableEntry +{ + text-align: right; + color: #284FA8; + font-family: sans-serif; + font-weight: bold; + white-space: nowrap; + padding-left: 12px; + padding-right: 4px; + background-color: #DAE7FE; +} + +/* All views: header item coverage table entry for high coverage rate */ +td.headerCovTableEntryHi +{ + text-align: right; + color: #000000; + font-family: sans-serif; + font-weight: bold; + white-space: nowrap; + padding-left: 12px; + padding-right: 4px; + background-color: #A7FC9D; +} + +/* All views: header item coverage table entry for medium coverage rate */ +td.headerCovTableEntryMed +{ + text-align: right; + color: #000000; + font-family: sans-serif; + font-weight: bold; + white-space: nowrap; + padding-left: 12px; + padding-right: 4px; + background-color: #FFEA20; +} + +/* All views: header item coverage table entry for ow coverage rate */ +td.headerCovTableEntryLo +{ + text-align: right; + color: #000000; + font-family: sans-serif; + font-weight: bold; + white-space: nowrap; + padding-left: 12px; + padding-right: 4px; + background-color: #FF0000; +} + +/* All views: header legend value for legend entry */ +td.headerValueLeg +{ + text-align: left; + color: #000000; + font-family: sans-serif; + font-size: 80%; + white-space: nowrap; + padding-top: 4px; +} + +/* All views: color of horizontal ruler */ +td.ruler +{ + background-color: #6688D4; +} + +/* All views: version string format */ +td.versionInfo +{ + text-align: center; + padding-top: 2px; + font-family: sans-serif; + font-style: italic; +} + +/* Directory view/File view (all)/Test case descriptions: + table headline format */ +td.tableHead +{ + text-align: center; + color: #FFFFFF; + background-color: #6688D4; + font-family: sans-serif; + font-size: 120%; + font-weight: bold; + white-space: nowrap; + padding-left: 4px; + padding-right: 4px; +} + +span.tableHeadSort +{ + padding-right: 4px; +} + +/* Directory view/File view (all): filename entry format */ +td.coverFile +{ + text-align: left; + padding-left: 10px; + padding-right: 20px; + color: #284FA8; + background-color: #DAE7FE; + font-family: monospace; +} + +/* Directory view/File view (all): bar-graph entry format*/ +td.coverBar +{ + padding-left: 10px; + padding-right: 10px; + background-color: #DAE7FE; +} + +/* Directory view/File view (all): bar-graph outline color */ +td.coverBarOutline +{ + background-color: #000000; +} + +/* Directory view/File view (all): percentage entry for files with + high coverage rate */ +td.coverPerHi +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #A7FC9D; + font-weight: bold; + font-family: sans-serif; +} + +/* Directory view/File view (all): line count entry for files with + high coverage rate */ +td.coverNumHi +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #A7FC9D; + white-space: nowrap; + font-family: sans-serif; +} + +/* Directory view/File view (all): percentage entry for files with + medium coverage rate */ +td.coverPerMed +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #FFEA20; + font-weight: bold; + font-family: sans-serif; +} + +/* Directory view/File view (all): line count entry for files with + medium coverage rate */ +td.coverNumMed +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #FFEA20; + white-space: nowrap; + font-family: sans-serif; +} + +/* Directory view/File view (all): percentage entry for files with + low coverage rate */ +td.coverPerLo +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #FF0000; + font-weight: bold; + font-family: sans-serif; +} + +/* Directory view/File view (all): line count entry for files with + low coverage rate */ +td.coverNumLo +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #FF0000; + white-space: nowrap; + font-family: sans-serif; +} + +/* File view (all): "show/hide details" link format */ +a.detail:link +{ + color: #B8D0FF; + font-size:80%; +} + +/* File view (all): "show/hide details" link - visited format */ +a.detail:visited +{ + color: #B8D0FF; + font-size:80%; +} + +/* File view (all): "show/hide details" link - activated format */ +a.detail:active +{ + color: #FFFFFF; + font-size:80%; +} + +/* File view (detail): test name entry */ +td.testName +{ + text-align: right; + padding-right: 10px; + background-color: #DAE7FE; + font-family: sans-serif; +} + +/* File view (detail): test percentage entry */ +td.testPer +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #DAE7FE; + font-family: sans-serif; +} + +/* File view (detail): test lines count entry */ +td.testNum +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #DAE7FE; + font-family: sans-serif; +} + +/* Test case descriptions: test name format*/ +dt +{ + font-family: sans-serif; + font-weight: bold; +} + +/* Test case descriptions: description table body */ +td.testDescription +{ + padding-top: 10px; + padding-left: 30px; + padding-bottom: 10px; + padding-right: 30px; + background-color: #DAE7FE; +} + +/* Source code view: function entry */ +td.coverFn +{ + text-align: left; + padding-left: 10px; + padding-right: 20px; + color: #284FA8; + background-color: #DAE7FE; + font-family: monospace; +} + +/* Source code view: function entry zero count*/ +td.coverFnLo +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #FF0000; + font-weight: bold; + font-family: sans-serif; +} + +/* Source code view: function entry nonzero count*/ +td.coverFnHi +{ + text-align: right; + padding-left: 10px; + padding-right: 10px; + background-color: #DAE7FE; + font-weight: bold; + font-family: sans-serif; +} + +/* Source code view: source code format */ +pre.source +{ + font-family: monospace; + white-space: pre; + margin-top: 2px; +} + +/* Source code view: line number format */ +span.lineNum +{ + background-color: #EFE383; +} + +/* Source code view: format for lines which were executed */ +td.lineCov, +span.lineCov +{ + background-color: #CAD7FE; +} + +/* Source code view: format for Cov legend */ +span.coverLegendCov +{ + padding-left: 10px; + padding-right: 10px; + padding-bottom: 2px; + background-color: #CAD7FE; +} + +/* Source code view: format for lines which were not executed */ +td.lineNoCov, +span.lineNoCov +{ + background-color: #FF6230; +} + +/* Source code view: format for NoCov legend */ +span.coverLegendNoCov +{ + padding-left: 10px; + padding-right: 10px; + padding-bottom: 2px; + background-color: #FF6230; +} + +/* Source code view (function table): standard link - visited format */ +td.lineNoCov > a:visited, +td.lineCov > a:visited +{ + color: black; + text-decoration: underline; +} + +/* Source code view: format for lines which were executed only in a + previous version */ +span.lineDiffCov +{ + background-color: #B5F7AF; +} + +/* Source code view: format for branches which were executed + * and taken */ +span.branchCov +{ + background-color: #CAD7FE; +} + +/* Source code view: format for branches which were executed + * but not taken */ +span.branchNoCov +{ + background-color: #FF6230; +} + +/* Source code view: format for branches which were not executed */ +span.branchNoExec +{ + background-color: #FF6230; +} + +/* Source code view: format for the source code heading line */ +pre.sourceHeading +{ + white-space: pre; + font-family: monospace; + font-weight: bold; + margin: 0px; +} + +/* All views: header legend value for low rate */ +td.headerValueLegL +{ + font-family: sans-serif; + text-align: center; + white-space: nowrap; + padding-left: 4px; + padding-right: 2px; + background-color: #FF0000; + font-size: 80%; +} + +/* All views: header legend value for med rate */ +td.headerValueLegM +{ + font-family: sans-serif; + text-align: center; + white-space: nowrap; + padding-left: 2px; + padding-right: 2px; + background-color: #FFEA20; + font-size: 80%; +} + +/* All views: header legend value for hi rate */ +td.headerValueLegH +{ + font-family: sans-serif; + text-align: center; + white-space: nowrap; + padding-left: 2px; + padding-right: 4px; + background-color: #A7FC9D; + font-size: 80%; +} + +/* All views except source code view: legend format for low coverage */ +span.coverLegendCovLo +{ + padding-left: 10px; + padding-right: 10px; + padding-top: 2px; + background-color: #FF0000; +} + +/* All views except source code view: legend format for med coverage */ +span.coverLegendCovMed +{ + padding-left: 10px; + padding-right: 10px; + padding-top: 2px; + background-color: #FFEA20; +} + +/* All views except source code view: legend format for hi coverage */ +span.coverLegendCovHi +{ + padding-left: 10px; + padding-right: 10px; + padding-top: 2px; + background-color: #A7FC9D; +} diff --git a/coverage/glass.png b/coverage/glass.png new file mode 100644 index 0000000000000000000000000000000000000000..e1abc00680a3093c49fdb775ae6bdb6764c95af2 GIT binary patch literal 167 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)gaEa{HEjtmSN`?>!lvI6;R0X`wF z|Ns97GD8ntt^-nxB|(0{3=Yq3q=7g|-tI089jvk*Kn`btM`SSr1Gf+eGhVt|_XjA* zUgGKN%6^Gmn4d%Ph(nkFP>9RZ#WAE}PI3Z}&BVayv3^M*kj3EX>gTe~DWM4f=_Dpv literal 0 HcmV?d00001 diff --git a/coverage/index-sort-f.html b/coverage/index-sort-f.html new file mode 100644 index 0000000..ebd369e --- /dev/null +++ b/coverage/index-sort-f.html @@ -0,0 +1,173 @@ + + + + + + + LCOV - lcov.info + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top levelHitTotalCoverage
Test:lcov.infoLines:5128318.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Directory Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
lib/remote/requests +
2.1%2.1%
+
2.1 %1 / 47-0 / 0
lib/remote/services +
0.0%
+
0.0 %0 / 110-0 / 0
lib/remote/models +
0.0%
+
0.0 %0 / 34-0 / 0
lib/auth +
96.6%96.6%
+
96.6 %28 / 29-0 / 0
lib +
0.0%
+
0.0 %0 / 4-0 / 0
lib/remote/responses +
33.3%33.3%
+
33.3 %1 / 3-0 / 0
lib/screens/login/bloc +
100.0%
+
100.0 %21 / 21-0 / 0
lib/remote/repositories +
0.0%
+
0.0 %0 / 17-0 / 0
lib/remote +
0.0%
+
0.0 %0 / 18-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/index-sort-l.html b/coverage/index-sort-l.html new file mode 100644 index 0000000..204f0aa --- /dev/null +++ b/coverage/index-sort-l.html @@ -0,0 +1,173 @@ + + + + + + + LCOV - lcov.info + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top levelHitTotalCoverage
Test:lcov.infoLines:5128318.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Directory Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
lib +
0.0%
+
0.0 %0 / 4-0 / 0
lib/remote/repositories +
0.0%
+
0.0 %0 / 17-0 / 0
lib/remote +
0.0%
+
0.0 %0 / 18-0 / 0
lib/remote/models +
0.0%
+
0.0 %0 / 34-0 / 0
lib/remote/services +
0.0%
+
0.0 %0 / 110-0 / 0
lib/remote/requests +
2.1%2.1%
+
2.1 %1 / 47-0 / 0
lib/remote/responses +
33.3%33.3%
+
33.3 %1 / 3-0 / 0
lib/auth +
96.6%96.6%
+
96.6 %28 / 29-0 / 0
lib/screens/login/bloc +
100.0%
+
100.0 %21 / 21-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/index.html b/coverage/index.html new file mode 100644 index 0000000..8fb7106 --- /dev/null +++ b/coverage/index.html @@ -0,0 +1,173 @@ + + + + + + + LCOV - lcov.info + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top levelHitTotalCoverage
Test:lcov.infoLines:5128318.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Directory Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
lib +
0.0%
+
0.0 %0 / 4-0 / 0
lib/auth +
96.6%96.6%
+
96.6 %28 / 29-0 / 0
lib/remote +
0.0%
+
0.0 %0 / 18-0 / 0
lib/remote/models +
0.0%
+
0.0 %0 / 34-0 / 0
lib/remote/repositories +
0.0%
+
0.0 %0 / 17-0 / 0
lib/remote/requests +
2.1%2.1%
+
2.1 %1 / 47-0 / 0
lib/remote/responses +
33.3%33.3%
+
33.3 %1 / 3-0 / 0
lib/remote/services +
0.0%
+
0.0 %0 / 110-0 / 0
lib/screens/login/bloc +
100.0%
+
100.0 %21 / 21-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lcov.info b/coverage/lcov.info new file mode 100644 index 0000000..1dcf6ae --- /dev/null +++ b/coverage/lcov.info @@ -0,0 +1,383 @@ +SF:lib/remote/repositories/auth_repository.dart +DA:15,0 +DA:19,0 +DA:21,0 +DA:22,0 +DA:23,0 +DA:26,0 +DA:27,0 +DA:30,0 +DA:31,0 +DA:32,0 +DA:35,0 +DA:36,0 +DA:37,0 +DA:40,0 +DA:41,0 +DA:44,0 +DA:46,0 +LF:17 +LH:0 +end_of_record +SF:lib/auth/auth_bloc.dart +DA:12,1 +DA:14,1 +DA:15,1 +DA:18,1 +DA:19,1 +DA:20,3 +DA:23,0 +DA:25,2 +DA:29,1 +DA:30,2 +DA:31,4 +DA:32,2 +DA:35,1 +DA:36,2 +DA:37,3 +DA:38,2 +LF:16 +LH:15 +end_of_record +SF:lib/auth/auth_event.dart +DA:4,3 +DA:6,1 +DA:7,1 +DA:15,3 +DA:17,2 +DA:18,4 +DA:20,1 +DA:21,2 +LF:8 +LH:8 +end_of_record +SF:lib/auth/auth_state.dart +DA:4,1 +DA:6,1 +DA:20,1 +DA:22,1 +DA:23,2 +LF:5 +LH:5 +end_of_record +SF:lib/failure.dart +DA:7,0 +DA:9,0 +DA:11,0 +DA:12,0 +LF:4 +LH:0 +end_of_record +SF:lib/remote/api_manager.dart +DA:13,0 +DA:20,0 +DA:24,0 +DA:26,0 +DA:28,0 +DA:29,0 +DA:30,0 +DA:32,0 +DA:33,0 +DA:34,0 +DA:35,0 +DA:36,0 +DA:37,0 +DA:38,0 +LF:14 +LH:0 +end_of_record +SF:lib/remote/services/auth_service.dart +DA:16,0 +DA:17,0 +DA:19,0 +DA:20,0 +DA:22,0 +DA:23,0 +DA:24,0 +DA:27,0 +LF:8 +LH:0 +end_of_record +SF:lib/remote/services/auth_service.chopper.dart +DA:11,0 +DA:13,0 +DA:19,0 +DA:23,0 +DA:24,0 +DA:27,0 +DA:31,0 +DA:32,0 +LF:8 +LH:0 +end_of_record +SF:lib/remote/services/relation_service.chopper.dart +DA:11,0 +DA:13,0 +DA:19,0 +DA:22,0 +DA:23,0 +DA:26,0 +DA:28,0 +DA:29,0 +DA:30,0 +DA:33,0 +DA:35,0 +DA:36,0 +DA:37,0 +DA:40,0 +DA:42,0 +DA:43,0 +DA:44,0 +DA:47,0 +DA:49,0 +DA:50,0 +DA:51,0 +DA:54,0 +DA:59,0 +DA:60,0 +DA:63,0 +DA:66,0 +DA:67,0 +LF:27 +LH:0 +end_of_record +SF:lib/remote/services/relation_service.dart +DA:39,0 +DA:40,0 +DA:42,0 +DA:43,0 +DA:45,0 +DA:46,0 +DA:47,0 +DA:48,0 +DA:51,0 +LF:9 +LH:0 +end_of_record +SF:lib/remote/services/task_service.dart +DA:28,0 +DA:29,0 +DA:31,0 +DA:32,0 +DA:34,0 +DA:35,0 +DA:36,0 +DA:37,0 +DA:40,0 +LF:9 +LH:0 +end_of_record +SF:lib/remote/services/task_service.chopper.dart +DA:11,0 +DA:13,0 +DA:19,0 +DA:22,0 +DA:23,0 +DA:24,0 +DA:27,0 +DA:30,0 +DA:32,0 +DA:33,0 +DA:36,0 +DA:39,0 +DA:40,0 +DA:41,0 +DA:44,0 +DA:46,0 +DA:47,0 +DA:48,0 +LF:18 +LH:0 +end_of_record +SF:lib/remote/services/user_service.dart +DA:38,0 +DA:39,0 +DA:41,0 +DA:42,0 +DA:44,0 +DA:45,0 +DA:46,0 +DA:47,0 +DA:50,0 +LF:9 +LH:0 +end_of_record +SF:lib/remote/services/user_service.chopper.dart +DA:11,0 +DA:13,0 +DA:19,0 +DA:22,0 +DA:23,0 +DA:26,0 +DA:29,0 +DA:30,0 +DA:31,0 +DA:34,0 +DA:37,0 +DA:38,0 +DA:41,0 +DA:43,0 +DA:44,0 +DA:45,0 +DA:48,0 +DA:52,0 +DA:53,0 +DA:56,0 +DA:60,0 +DA:61,0 +LF:22 +LH:0 +end_of_record +SF:lib/remote/auth_interceptor.dart +DA:9,0 +DA:10,0 +DA:12,0 +DA:14,0 +LF:4 +LH:0 +end_of_record +SF:lib/remote/models/user.dart +DA:17,0 +DA:33,0 +DA:34,0 +DA:36,0 +DA:38,0 +DA:44,0 +DA:45,0 +DA:46,0 +DA:47,0 +DA:48,0 +DA:49,0 +DA:50,0 +DA:51,0 +DA:52,0 +DA:53,0 +DA:54,0 +DA:55,0 +DA:56,0 +DA:57,0 +DA:60,0 +DA:61,0 +DA:62,0 +DA:63,0 +DA:64,0 +DA:65,0 +DA:66,0 +DA:67,0 +DA:68,0 +DA:69,0 +DA:70,0 +DA:71,0 +DA:72,0 +DA:73,0 +DA:74,0 +LF:34 +LH:0 +end_of_record +SF:lib/remote/requests/login.dart +DA:8,2 +DA:9,0 +DA:10,0 +DA:12,0 +LF:4 +LH:1 +end_of_record +SF:lib/remote/requests/register.dart +DA:20,0 +DA:28,0 +DA:29,0 +DA:30,0 +DA:31,0 +DA:32,0 +DA:33,0 +DA:34,0 +DA:36,0 +DA:37,0 +DA:38,0 +DA:39,0 +DA:40,0 +DA:41,0 +DA:42,0 +DA:43,0 +LF:16 +LH:0 +end_of_record +SF:lib/remote/responses/auth_token.dart +DA:8,1 +DA:10,0 +DA:11,0 +LF:3 +LH:1 +end_of_record +SF:lib/remote/requests/change_password.dart +DA:7,0 +DA:9,0 +DA:10,0 +DA:11,0 +DA:12,0 +DA:16,0 +DA:17,0 +DA:18,0 +DA:19,0 +LF:9 +LH:0 +end_of_record +SF:lib/remote/requests/relation_requests.dart +DA:12,0 +DA:14,0 +DA:15,0 +DA:16,0 +DA:17,0 +DA:18,0 +DA:21,0 +DA:22,0 +DA:23,0 +DA:24,0 +DA:25,0 +DA:26,0 +LF:12 +LH:0 +end_of_record +SF:lib/remote/requests/task_request.dart +DA:6,0 +DA:8,0 +DA:9,0 +DA:11,0 +DA:12,0 +DA:13,0 +LF:6 +LH:0 +end_of_record +SF:lib/screens/login/bloc/login_bloc.dart +DA:12,1 +DA:14,1 +DA:15,1 +DA:18,1 +DA:19,1 +DA:20,2 +DA:22,4 +DA:23,2 +DA:24,4 +DA:26,3 +LF:10 +LH:10 +end_of_record +SF:lib/screens/login/bloc/login_event.dart +DA:5,2 +DA:11,2 +DA:13,1 +DA:14,2 +LF:4 +LH:4 +end_of_record +SF:lib/screens/login/bloc/login_state.dart +DA:4,2 +DA:6,1 +DA:19,2 +DA:21,2 +DA:22,4 +DA:23,1 +DA:24,2 +LF:7 +LH:7 +end_of_record diff --git a/coverage/lib/auth/auth_bloc.dart.func-sort-c.html b/coverage/lib/auth/auth_bloc.dart.func-sort-c.html new file mode 100644 index 0000000..7728e6b --- /dev/null +++ b/coverage/lib/auth/auth_bloc.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/auth/auth_bloc.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/auth - auth_bloc.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:151693.8 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/auth/auth_bloc.dart.func.html b/coverage/lib/auth/auth_bloc.dart.func.html new file mode 100644 index 0000000..ab686a3 --- /dev/null +++ b/coverage/lib/auth/auth_bloc.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/auth/auth_bloc.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/auth - auth_bloc.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:151693.8 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/auth/auth_bloc.dart.gcov.html b/coverage/lib/auth/auth_bloc.dart.gcov.html new file mode 100644 index 0000000..3126c8f --- /dev/null +++ b/coverage/lib/auth/auth_bloc.dart.gcov.html @@ -0,0 +1,117 @@ + + + + + + + LCOV - lcov.info - lib/auth/auth_bloc.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/auth - auth_bloc.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:151693.8 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'dart:async';
+       2             : 
+       3             : import 'package:bloc/bloc.dart';
+       4             : import 'package:mentorship_client/auth/bloc.dart';
+       5             : import 'package:mentorship_client/remote/repositories/auth_repository.dart';
+       6             : 
+       7             : import 'bloc.dart';
+       8             : 
+       9             : class AuthBloc extends Bloc<AuthEvent, AuthState> {
+      10             :   final AuthRepository userRepository;
+      11             : 
+      12           1 :   AuthBloc(this.userRepository);
+      13             : 
+      14           1 :   @override
+      15           1 :   AuthState get initialState => AuthUninitialized();
+      16             : 
+      17             :   @override
+      18           1 :   Stream<AuthState> mapEventToState(AuthEvent event) async* {
+      19           1 :     if (event is AppStarted) {
+      20           3 :       final String token = await userRepository.getToken();
+      21             : 
+      22             :       if (token != null) {
+      23           0 :         yield AuthAuthenticated();
+      24             :       } else {
+      25           2 :         yield AuthUnauthenticated();
+      26             :       }
+      27             :     }
+      28             : 
+      29           1 :     if (event is JustLoggedIn) {
+      30           2 :       yield AuthInProgress();
+      31           4 :       await userRepository.persistToken(event.token);
+      32           2 :       yield AuthAuthenticated();
+      33             :     }
+      34             : 
+      35           1 :     if (event is JustLoggedOut) {
+      36           2 :       yield AuthInProgress();
+      37           3 :       await userRepository.deleteToken();
+      38           2 :       yield AuthUnauthenticated(justLoggedOut: true);
+      39             :     }
+      40             :   }
+      41             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/auth/auth_event.dart.func-sort-c.html b/coverage/lib/auth/auth_event.dart.func-sort-c.html new file mode 100644 index 0000000..4f451c2 --- /dev/null +++ b/coverage/lib/auth/auth_event.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/auth/auth_event.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/auth - auth_event.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:88100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/auth/auth_event.dart.func.html b/coverage/lib/auth/auth_event.dart.func.html new file mode 100644 index 0000000..ab37119 --- /dev/null +++ b/coverage/lib/auth/auth_event.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/auth/auth_event.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/auth - auth_event.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:88100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/auth/auth_event.dart.gcov.html b/coverage/lib/auth/auth_event.dart.gcov.html new file mode 100644 index 0000000..05143a4 --- /dev/null +++ b/coverage/lib/auth/auth_event.dart.gcov.html @@ -0,0 +1,100 @@ + + + + + + + LCOV - lcov.info - lib/auth/auth_event.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/auth - auth_event.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:88100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'package:equatable/equatable.dart';
+       2             : 
+       3             : abstract class AuthEvent extends Equatable {
+       4           3 :   const AuthEvent();
+       5             : 
+       6           1 :   @override
+       7           1 :   List<Object> get props => [];
+       8             : }
+       9             : 
+      10             : class AppStarted extends AuthEvent {}
+      11             : 
+      12             : class JustLoggedIn extends AuthEvent {
+      13             :   final String token;
+      14             : 
+      15           3 :   const JustLoggedIn(this.token);
+      16             : 
+      17           2 :   @override
+      18           4 :   List<Object> get props => [token];
+      19             : 
+      20           1 :   @override
+      21           2 :   String toString() => 'LoggedIn { token: $token }';
+      22             : }
+      23             : 
+      24             : class JustLoggedOut extends AuthEvent {}
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/auth/auth_state.dart.func-sort-c.html b/coverage/lib/auth/auth_state.dart.func-sort-c.html new file mode 100644 index 0000000..9488928 --- /dev/null +++ b/coverage/lib/auth/auth_state.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/auth/auth_state.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/auth - auth_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:55100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/auth/auth_state.dart.func.html b/coverage/lib/auth/auth_state.dart.func.html new file mode 100644 index 0000000..fe6ae5a --- /dev/null +++ b/coverage/lib/auth/auth_state.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/auth/auth_state.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/auth - auth_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:55100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/auth/auth_state.dart.gcov.html b/coverage/lib/auth/auth_state.dart.gcov.html new file mode 100644 index 0000000..685b429 --- /dev/null +++ b/coverage/lib/auth/auth_state.dart.gcov.html @@ -0,0 +1,102 @@ + + + + + + + LCOV - lcov.info - lib/auth/auth_state.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/auth - auth_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:55100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'package:equatable/equatable.dart';
+       2             : 
+       3             : abstract class AuthState extends Equatable {
+       4           1 :   const AuthState();
+       5             : 
+       6           1 :   @override
+       7             :   List<Object> get props => null;
+       8             : }
+       9             : 
+      10             : class AuthUninitialized extends AuthState {}
+      11             : 
+      12             : class AuthAuthenticated extends AuthState {}
+      13             : 
+      14             : /// Represents app state when the user is not signed in.
+      15             : /// [justLoggedOut] signifies that a logout happened
+      16             : /// very recently.
+      17             : class AuthUnauthenticated extends AuthState {
+      18             :   final bool justLoggedOut;
+      19             : 
+      20           1 :   AuthUnauthenticated({this.justLoggedOut = false});
+      21             : 
+      22           1 :   @override
+      23           2 :   List<Object> get props => [justLoggedOut];
+      24             : }
+      25             : 
+      26             : class AuthInProgress extends AuthState {}
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/auth/index-sort-f.html b/coverage/lib/auth/index-sort-f.html new file mode 100644 index 0000000..a244f52 --- /dev/null +++ b/coverage/lib/auth/index-sort-f.html @@ -0,0 +1,113 @@ + + + + + + + LCOV - lcov.info - lib/auth + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/authHitTotalCoverage
Test:lcov.infoLines:282996.6 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_bloc.dart +
93.8%93.8%
+
93.8 %15 / 16-0 / 0
auth_event.dart +
100.0%
+
100.0 %8 / 8-0 / 0
auth_state.dart +
100.0%
+
100.0 %5 / 5-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/auth/index-sort-l.html b/coverage/lib/auth/index-sort-l.html new file mode 100644 index 0000000..bba19ec --- /dev/null +++ b/coverage/lib/auth/index-sort-l.html @@ -0,0 +1,113 @@ + + + + + + + LCOV - lcov.info - lib/auth + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/authHitTotalCoverage
Test:lcov.infoLines:282996.6 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_bloc.dart +
93.8%93.8%
+
93.8 %15 / 16-0 / 0
auth_state.dart +
100.0%
+
100.0 %5 / 5-0 / 0
auth_event.dart +
100.0%
+
100.0 %8 / 8-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/auth/index.html b/coverage/lib/auth/index.html new file mode 100644 index 0000000..7121d96 --- /dev/null +++ b/coverage/lib/auth/index.html @@ -0,0 +1,113 @@ + + + + + + + LCOV - lcov.info - lib/auth + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/authHitTotalCoverage
Test:lcov.infoLines:282996.6 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_bloc.dart +
93.8%93.8%
+
93.8 %15 / 16-0 / 0
auth_event.dart +
100.0%
+
100.0 %8 / 8-0 / 0
auth_state.dart +
100.0%
+
100.0 %5 / 5-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/failure.dart.func-sort-c.html b/coverage/lib/failure.dart.func-sort-c.html new file mode 100644 index 0000000..ac19f4b --- /dev/null +++ b/coverage/lib/failure.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/failure.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib - failure.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/failure.dart.func.html b/coverage/lib/failure.dart.func.html new file mode 100644 index 0000000..6f65e41 --- /dev/null +++ b/coverage/lib/failure.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/failure.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib - failure.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/failure.dart.gcov.html b/coverage/lib/failure.dart.gcov.html new file mode 100644 index 0000000..6189bd5 --- /dev/null +++ b/coverage/lib/failure.dart.gcov.html @@ -0,0 +1,89 @@ + + + + + + + LCOV - lcov.info - lib/failure.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib - failure.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'dart:convert';
+       2             : 
+       3             : /// Represents some failure with a message.
+       4             : class Failure {
+       5             :   final String message;
+       6             : 
+       7           0 :   Failure(this.message);
+       8             : 
+       9           0 :   Failure.fromJson(String jsonString) : message = jsonDecode(jsonString)["message"];
+      10             : 
+      11           0 :   @override
+      12           0 :   String toString() => "Failure: $message";
+      13             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/index-sort-f.html b/coverage/lib/index-sort-f.html new file mode 100644 index 0000000..2b0d49c --- /dev/null +++ b/coverage/lib/index-sort-f.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - lib + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - libHitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
failure.dart +
0.0%
+
0.0 %0 / 4-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/index-sort-l.html b/coverage/lib/index-sort-l.html new file mode 100644 index 0000000..c46f921 --- /dev/null +++ b/coverage/lib/index-sort-l.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - lib + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - libHitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
failure.dart +
0.0%
+
0.0 %0 / 4-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/index.html b/coverage/lib/index.html new file mode 100644 index 0000000..457ff9a --- /dev/null +++ b/coverage/lib/index.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - lib + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - libHitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
failure.dart +
0.0%
+
0.0 %0 / 4-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/api_manager.dart.func-sort-c.html b/coverage/lib/remote/api_manager.dart.func-sort-c.html new file mode 100644 index 0000000..e8548a4 --- /dev/null +++ b/coverage/lib/remote/api_manager.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/api_manager.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote - api_manager.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0140.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/api_manager.dart.func.html b/coverage/lib/remote/api_manager.dart.func.html new file mode 100644 index 0000000..88216f0 --- /dev/null +++ b/coverage/lib/remote/api_manager.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/api_manager.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote - api_manager.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0140.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/api_manager.dart.gcov.html b/coverage/lib/remote/api_manager.dart.gcov.html new file mode 100644 index 0000000..f8b9ab1 --- /dev/null +++ b/coverage/lib/remote/api_manager.dart.gcov.html @@ -0,0 +1,117 @@ + + + + + + + LCOV - lcov.info - lib/remote/api_manager.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote - api_manager.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0140.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'dart:io';
+       2             : 
+       3             : import 'package:logging/logging.dart';
+       4             : import 'package:mentorship_client/failure.dart';
+       5             : import 'package:mentorship_client/remote/services/auth_service.dart';
+       6             : import 'package:mentorship_client/remote/services/relation_service.dart';
+       7             : import 'package:mentorship_client/remote/services/task_service.dart';
+       8             : import 'package:mentorship_client/remote/services/user_service.dart';
+       9             : import 'package:mentorship_client/typedefs.dart';
+      10             : 
+      11             : /// Singleton class that gathers all services in one place.
+      12             : class ApiManager {
+      13           0 :   static final instance = ApiManager._internal();
+      14             : 
+      15             :   final AuthService authService = AuthService.create();
+      16             :   final UserService userService = UserService.create();
+      17             :   final RelationService relationService = RelationService.create();
+      18             :   final TaskService taskService = TaskService.create();
+      19             : 
+      20           0 :   ApiManager._internal();
+      21             : 
+      22             :   /// Convenience method to reduce boilerplate. Invokes API function
+      23             :   /// and catches all possible errors.
+      24           0 :   static Future<T> callSafely<T>(ApiFunction apiFunction) async {
+      25             :     try {
+      26           0 :       final response = await apiFunction();
+      27             : 
+      28           0 :       if (!response.isSuccessful) {
+      29           0 :         Logger.root.severe("Error: ${response.error}");
+      30           0 :         throw Failure.fromJson(response.error);
+      31             :       }
+      32           0 :       return response.body;
+      33           0 :     } on SocketException {
+      34           0 :       throw Failure("No internet connection");
+      35           0 :     } on HttpException {
+      36           0 :       throw Failure("HttpException");
+      37           0 :     } on Exception catch (e) {
+      38           0 :       throw Failure(e.toString());
+      39             :     }
+      40             :   }
+      41             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/auth_interceptor.dart.func-sort-c.html b/coverage/lib/remote/auth_interceptor.dart.func-sort-c.html new file mode 100644 index 0000000..1759ea9 --- /dev/null +++ b/coverage/lib/remote/auth_interceptor.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/auth_interceptor.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote - auth_interceptor.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/auth_interceptor.dart.func.html b/coverage/lib/remote/auth_interceptor.dart.func.html new file mode 100644 index 0000000..39817ea --- /dev/null +++ b/coverage/lib/remote/auth_interceptor.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/auth_interceptor.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote - auth_interceptor.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/auth_interceptor.dart.gcov.html b/coverage/lib/remote/auth_interceptor.dart.gcov.html new file mode 100644 index 0000000..5e757f5 --- /dev/null +++ b/coverage/lib/remote/auth_interceptor.dart.gcov.html @@ -0,0 +1,94 @@ + + + + + + + LCOV - lcov.info - lib/remote/auth_interceptor.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote - auth_interceptor.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'dart:async';
+       2             : 
+       3             : import 'package:chopper/chopper.dart';
+       4             : import 'package:mentorship_client/remote/repositories/auth_repository.dart';
+       5             : 
+       6             : /// Custom RequestInterceptor which adds current [User]s JWT token to every request
+       7             : class AuthInterceptor extends RequestInterceptor {
+       8             :   @override
+       9           0 :   FutureOr<Request> onRequest(Request request) async {
+      10           0 :     String token = await AuthRepository.instance.getToken();
+      11             : 
+      12           0 :     Map<String, String> headers = {"Authorization": token};
+      13             : 
+      14           0 :     Request authenticatedRequest = applyHeaders(request, headers);
+      15             : 
+      16             :     return authenticatedRequest;
+      17             :   }
+      18             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/index-sort-f.html b/coverage/lib/remote/index-sort-f.html new file mode 100644 index 0000000..187f92a --- /dev/null +++ b/coverage/lib/remote/index-sort-f.html @@ -0,0 +1,103 @@ + + + + + + + LCOV - lcov.info - lib/remote + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remoteHitTotalCoverage
Test:lcov.infoLines:0180.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_interceptor.dart +
0.0%
+
0.0 %0 / 4-0 / 0
api_manager.dart +
0.0%
+
0.0 %0 / 14-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/index-sort-l.html b/coverage/lib/remote/index-sort-l.html new file mode 100644 index 0000000..324871c --- /dev/null +++ b/coverage/lib/remote/index-sort-l.html @@ -0,0 +1,103 @@ + + + + + + + LCOV - lcov.info - lib/remote + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remoteHitTotalCoverage
Test:lcov.infoLines:0180.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_interceptor.dart +
0.0%
+
0.0 %0 / 4-0 / 0
api_manager.dart +
0.0%
+
0.0 %0 / 14-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/index.html b/coverage/lib/remote/index.html new file mode 100644 index 0000000..4ad3d37 --- /dev/null +++ b/coverage/lib/remote/index.html @@ -0,0 +1,103 @@ + + + + + + + LCOV - lcov.info - lib/remote + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remoteHitTotalCoverage
Test:lcov.infoLines:0180.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
api_manager.dart +
0.0%
+
0.0 %0 / 14-0 / 0
auth_interceptor.dart +
0.0%
+
0.0 %0 / 4-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/models/index-sort-f.html b/coverage/lib/remote/models/index-sort-f.html new file mode 100644 index 0000000..4ddcad4 --- /dev/null +++ b/coverage/lib/remote/models/index-sort-f.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - lib/remote/models + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/modelsHitTotalCoverage
Test:lcov.infoLines:0340.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
user.dart +
0.0%
+
0.0 %0 / 34-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/models/index-sort-l.html b/coverage/lib/remote/models/index-sort-l.html new file mode 100644 index 0000000..4f9afca --- /dev/null +++ b/coverage/lib/remote/models/index-sort-l.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - lib/remote/models + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/modelsHitTotalCoverage
Test:lcov.infoLines:0340.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
user.dart +
0.0%
+
0.0 %0 / 34-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/models/index.html b/coverage/lib/remote/models/index.html new file mode 100644 index 0000000..29c5dc5 --- /dev/null +++ b/coverage/lib/remote/models/index.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - lib/remote/models + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/modelsHitTotalCoverage
Test:lcov.infoLines:0340.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
user.dart +
0.0%
+
0.0 %0 / 34-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/models/user.dart.func-sort-c.html b/coverage/lib/remote/models/user.dart.func-sort-c.html new file mode 100644 index 0000000..3fb24f4 --- /dev/null +++ b/coverage/lib/remote/models/user.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/models/user.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/models - user.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0340.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/models/user.dart.func.html b/coverage/lib/remote/models/user.dart.func.html new file mode 100644 index 0000000..98fac7a --- /dev/null +++ b/coverage/lib/remote/models/user.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/models/user.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/models - user.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0340.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/models/user.dart.gcov.html b/coverage/lib/remote/models/user.dart.gcov.html new file mode 100644 index 0000000..b011907 --- /dev/null +++ b/coverage/lib/remote/models/user.dart.gcov.html @@ -0,0 +1,153 @@ + + + + + + + LCOV - lcov.info - lib/remote/models/user.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/models - user.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0340.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : /// Represents all the information related to a user of the system
+       2             : class User {
+       3             :   int id;
+       4             :   String username;
+       5             :   String name;
+       6             :   String email;
+       7             :   String slackUsername;
+       8             :   String bio;
+       9             :   String location;
+      10             :   String occupation;
+      11             :   String organization;
+      12             :   String interests;
+      13             :   String skills;
+      14             :   bool needsMentoring;
+      15             :   bool availableToMentor;
+      16             : 
+      17           0 :   User(
+      18             :       {this.id,
+      19             :       this.username,
+      20             :       this.name,
+      21             :       this.email,
+      22             :       this.slackUsername,
+      23             :       this.bio,
+      24             :       this.location,
+      25             :       this.occupation,
+      26             :       this.organization,
+      27             :       this.interests,
+      28             :       this.skills,
+      29             :       this.needsMentoring,
+      30             :       this.availableToMentor});
+      31             : 
+      32             :   /// Returns info about user's availability to be a mentor and a mentee
+      33           0 :   String requestStatus() {
+      34           0 :     if (needsMentoring && availableToMentor) {
+      35             :       return "Available to mentor and to be a mentee.";
+      36           0 :     } else if (needsMentoring) {
+      37             :       return "Needs mentoring";
+      38           0 :     } else if (availableToMentor) {
+      39             :       return "Available to mentor";
+      40             :     } else
+      41             :       return "";
+      42             :   }
+      43             : 
+      44           0 :   factory User.fromJson(Map<String, dynamic> json) => User(
+      45           0 :         id: json['id'],
+      46           0 :         username: json['username'],
+      47           0 :         name: json['name'],
+      48           0 :         email: json['email'],
+      49           0 :         slackUsername: json['slack_username'],
+      50           0 :         bio: json['bio'],
+      51           0 :         location: json['location'],
+      52           0 :         occupation: json['occupation'],
+      53           0 :         organization: json['organization'],
+      54           0 :         interests: json['interests'],
+      55           0 :         skills: json['skills'],
+      56           0 :         needsMentoring: json['need_mentoring'],
+      57           0 :         availableToMentor: json['available_to_mentor'],
+      58             :       );
+      59             : 
+      60           0 :   Map<String, dynamic> toJson() {
+      61           0 :     final Map<String, dynamic> data = new Map<String, dynamic>();
+      62           0 :     data['id'] = this.id;
+      63           0 :     data['username'] = this.username;
+      64           0 :     data['name'] = this.name;
+      65           0 :     data['email'] = this.email;
+      66           0 :     data['slack_username'] = this.slackUsername;
+      67           0 :     data['bio'] = this.bio;
+      68           0 :     data['location'] = this.location;
+      69           0 :     data['occupation'] = this.occupation;
+      70           0 :     data['organization'] = this.organization;
+      71           0 :     data['interests'] = this.interests;
+      72           0 :     data['skills'] = this.skills;
+      73           0 :     data['need_mentoring'] = this.needsMentoring;
+      74           0 :     data['available_to_mentor'] = this.availableToMentor;
+      75             :     return data;
+      76             :   }
+      77             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/repositories/auth_repository.dart.func-sort-c.html b/coverage/lib/remote/repositories/auth_repository.dart.func-sort-c.html new file mode 100644 index 0000000..c3901e2 --- /dev/null +++ b/coverage/lib/remote/repositories/auth_repository.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/repositories/auth_repository.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/repositories - auth_repository.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0170.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/repositories/auth_repository.dart.func.html b/coverage/lib/remote/repositories/auth_repository.dart.func.html new file mode 100644 index 0000000..5e3e308 --- /dev/null +++ b/coverage/lib/remote/repositories/auth_repository.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/repositories/auth_repository.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/repositories - auth_repository.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0170.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/repositories/auth_repository.dart.gcov.html b/coverage/lib/remote/repositories/auth_repository.dart.gcov.html new file mode 100644 index 0000000..a88d056 --- /dev/null +++ b/coverage/lib/remote/repositories/auth_repository.dart.gcov.html @@ -0,0 +1,127 @@ + + + + + + + LCOV - lcov.info - lib/remote/repositories/auth_repository.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/repositories - auth_repository.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0170.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'package:flutter_secure_storage/flutter_secure_storage.dart';
+       2             : import 'package:logging/logging.dart';
+       3             : import 'package:mentorship_client/remote/api_manager.dart';
+       4             : import 'package:mentorship_client/remote/requests/login.dart';
+       5             : import 'package:mentorship_client/remote/requests/register.dart';
+       6             : import 'package:mentorship_client/remote/responses/auth_token.dart';
+       7             : 
+       8             : /// Repository taking care of authentication. Its main task is to serve as an abstraction
+       9             : /// layer over [AuthService]. [AuthRepository] exposes following actions:
+      10             : /// - user login and logout
+      11             : /// - user registration
+      12             : /// - persisting JWT tokens
+      13             : /// - deleting JWT tokens
+      14             : class AuthRepository {
+      15           0 :   static final AuthRepository instance = AuthRepository._internal();
+      16             :   static const AUTH_TOKEN = "auth-token";
+      17             :   final _storage = FlutterSecureStorage();
+      18             : 
+      19           0 :   AuthRepository._internal();
+      20             : 
+      21           0 :   Future<AuthToken> login(Login login) async {
+      22           0 :     final body = await ApiManager.callSafely(() => ApiManager.instance.authService.login(login));
+      23           0 :     return AuthToken.fromJson(body);
+      24             :   }
+      25             : 
+      26           0 :   Future<void> register(Register register) async {
+      27           0 :     await ApiManager.callSafely(() => ApiManager.instance.authService.register(register));
+      28             :   }
+      29             : 
+      30           0 :   Future<void> deleteToken() async {
+      31           0 :     await _storage.delete(key: AUTH_TOKEN);
+      32           0 :     Logger.root.info("Deleted token.");
+      33             :   }
+      34             : 
+      35           0 :   Future<void> persistToken(String token) async {
+      36           0 :     await _storage.write(key: AUTH_TOKEN, value: "Bearer $token");
+      37           0 :     Logger.root.info("Persisted token.");
+      38             :   }
+      39             : 
+      40           0 :   Future<String> getToken() async {
+      41           0 :     final String token = await _storage.read(key: AUTH_TOKEN);
+      42             : 
+      43             :     if (token != null) {
+      44           0 :       Logger.root.info("Has token!");
+      45             :     } else {
+      46           0 :       Logger.root.info("Does not have token!");
+      47             :     }
+      48             : 
+      49             :     return token;
+      50             :   }
+      51             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/repositories/index-sort-f.html b/coverage/lib/remote/repositories/index-sort-f.html new file mode 100644 index 0000000..050e477 --- /dev/null +++ b/coverage/lib/remote/repositories/index-sort-f.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - lib/remote/repositories + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/repositoriesHitTotalCoverage
Test:lcov.infoLines:0170.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_repository.dart +
0.0%
+
0.0 %0 / 17-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/repositories/index-sort-l.html b/coverage/lib/remote/repositories/index-sort-l.html new file mode 100644 index 0000000..7b8395e --- /dev/null +++ b/coverage/lib/remote/repositories/index-sort-l.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - lib/remote/repositories + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/repositoriesHitTotalCoverage
Test:lcov.infoLines:0170.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_repository.dart +
0.0%
+
0.0 %0 / 17-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/repositories/index.html b/coverage/lib/remote/repositories/index.html new file mode 100644 index 0000000..3bb246f --- /dev/null +++ b/coverage/lib/remote/repositories/index.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - lib/remote/repositories + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/repositoriesHitTotalCoverage
Test:lcov.infoLines:0170.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_repository.dart +
0.0%
+
0.0 %0 / 17-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/change_password.dart.func-sort-c.html b/coverage/lib/remote/requests/change_password.dart.func-sort-c.html new file mode 100644 index 0000000..ed5f86f --- /dev/null +++ b/coverage/lib/remote/requests/change_password.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/change_password.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - change_password.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/change_password.dart.func.html b/coverage/lib/remote/requests/change_password.dart.func.html new file mode 100644 index 0000000..c9fc5e2 --- /dev/null +++ b/coverage/lib/remote/requests/change_password.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/change_password.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - change_password.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/change_password.dart.gcov.html b/coverage/lib/remote/requests/change_password.dart.gcov.html new file mode 100644 index 0000000..f0cb101 --- /dev/null +++ b/coverage/lib/remote/requests/change_password.dart.gcov.html @@ -0,0 +1,98 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/change_password.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - change_password.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'package:flutter/cupertino.dart';
+       2             : 
+       3             : class ChangePassword {
+       4             :   final String currentPassword;
+       5             :   final String newPassword;
+       6             : 
+       7           0 :   ChangePassword({@required this.currentPassword, @required this.newPassword});
+       8             : 
+       9           0 :   factory ChangePassword.fromJson(Map<String, dynamic> json) {
+      10           0 :     return ChangePassword(
+      11           0 :       currentPassword: json["current_password"],
+      12           0 :       newPassword: json["new_password"],
+      13             :     );
+      14             :   }
+      15             : 
+      16           0 :   Map<String, dynamic> toJson() {
+      17           0 :     final Map<String, dynamic> data = new Map<String, dynamic>();
+      18           0 :     data["current_password"] = this.currentPassword;
+      19           0 :     data["new_password"] = this.newPassword;
+      20             :     return data;
+      21             :   }
+      22             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/index-sort-f.html b/coverage/lib/remote/requests/index-sort-f.html new file mode 100644 index 0000000..9b6ee2c --- /dev/null +++ b/coverage/lib/remote/requests/index-sort-f.html @@ -0,0 +1,133 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requestsHitTotalCoverage
Test:lcov.infoLines:1472.1 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
login.dart +
25.0%25.0%
+
25.0 %1 / 4-0 / 0
register.dart +
0.0%
+
0.0 %0 / 16-0 / 0
task_request.dart +
0.0%
+
0.0 %0 / 6-0 / 0
relation_requests.dart +
0.0%
+
0.0 %0 / 12-0 / 0
change_password.dart +
0.0%
+
0.0 %0 / 9-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/index-sort-l.html b/coverage/lib/remote/requests/index-sort-l.html new file mode 100644 index 0000000..aab2c09 --- /dev/null +++ b/coverage/lib/remote/requests/index-sort-l.html @@ -0,0 +1,133 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requestsHitTotalCoverage
Test:lcov.infoLines:1472.1 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
task_request.dart +
0.0%
+
0.0 %0 / 6-0 / 0
change_password.dart +
0.0%
+
0.0 %0 / 9-0 / 0
relation_requests.dart +
0.0%
+
0.0 %0 / 12-0 / 0
register.dart +
0.0%
+
0.0 %0 / 16-0 / 0
login.dart +
25.0%25.0%
+
25.0 %1 / 4-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/index.html b/coverage/lib/remote/requests/index.html new file mode 100644 index 0000000..56aedbb --- /dev/null +++ b/coverage/lib/remote/requests/index.html @@ -0,0 +1,133 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requestsHitTotalCoverage
Test:lcov.infoLines:1472.1 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
change_password.dart +
0.0%
+
0.0 %0 / 9-0 / 0
login.dart +
25.0%25.0%
+
25.0 %1 / 4-0 / 0
register.dart +
0.0%
+
0.0 %0 / 16-0 / 0
relation_requests.dart +
0.0%
+
0.0 %0 / 12-0 / 0
task_request.dart +
0.0%
+
0.0 %0 / 6-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/login.dart.func-sort-c.html b/coverage/lib/remote/requests/login.dart.func-sort-c.html new file mode 100644 index 0000000..d681f0b --- /dev/null +++ b/coverage/lib/remote/requests/login.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/login.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - login.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1425.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/login.dart.func.html b/coverage/lib/remote/requests/login.dart.func.html new file mode 100644 index 0000000..b8b113f --- /dev/null +++ b/coverage/lib/remote/requests/login.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/login.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - login.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1425.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/login.dart.gcov.html b/coverage/lib/remote/requests/login.dart.gcov.html new file mode 100644 index 0000000..077247c --- /dev/null +++ b/coverage/lib/remote/requests/login.dart.gcov.html @@ -0,0 +1,89 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/login.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - login.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1425.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'package:flutter/foundation.dart';
+       2             : 
+       3             : /// This data class represents all data necessary to create a login
+       4             : class Login {
+       5             :   final String username;
+       6             :   final String password;
+       7             : 
+       8           2 :   Login({@required this.username, @required this.password})
+       9           0 :       : assert(username != null),
+      10           0 :         assert(password != null);
+      11             : 
+      12           0 :   Map<String, String> toJson() => {'username': username, "password": password};
+      13             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/register.dart.func-sort-c.html b/coverage/lib/remote/requests/register.dart.func-sort-c.html new file mode 100644 index 0000000..a543219 --- /dev/null +++ b/coverage/lib/remote/requests/register.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/register.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - register.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0160.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/register.dart.func.html b/coverage/lib/remote/requests/register.dart.func.html new file mode 100644 index 0000000..9d40cd1 --- /dev/null +++ b/coverage/lib/remote/requests/register.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/register.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - register.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0160.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/register.dart.gcov.html b/coverage/lib/remote/requests/register.dart.gcov.html new file mode 100644 index 0000000..7f182fa --- /dev/null +++ b/coverage/lib/remote/requests/register.dart.gcov.html @@ -0,0 +1,121 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/register.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - register.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0160.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'package:flutter/foundation.dart';
+       2             : 
+       3             : /// This data class represents all data necessary to register a new user.
+       4             : /// [name] represents the name of the new user
+       5             : /// [username] represents the username of the new user, used for login
+       6             : /// [email] represents the email of the new user, used for login
+       7             : /// [password] represents the password of the new user, used for login
+       8             : /// [acceptedTermsAndConditions] is true if the user checked the terms and conditions checkbox
+       9             : /// [needsMentoring] is true if the user checked Mentee checkbox
+      10             : /// [availableToMentor] is true if the user
+      11             : class Register {
+      12             :   final String name;
+      13             :   final String username;
+      14             :   final String email;
+      15             :   final String password;
+      16             :   final bool acceptedTermsAndConditions;
+      17             :   final bool needsMentoring;
+      18             :   final bool availableToMentor;
+      19             : 
+      20           0 :   Register({
+      21             :     @required this.name,
+      22             :     @required this.username,
+      23             :     @required this.email,
+      24             :     @required this.password,
+      25             :     @required this.acceptedTermsAndConditions,
+      26             :     @required this.needsMentoring,
+      27             :     @required this.availableToMentor,
+      28           0 :   })  : assert(name != null),
+      29           0 :         assert(username != null),
+      30           0 :         assert(email != null),
+      31           0 :         assert(password != null),
+      32           0 :         assert(acceptedTermsAndConditions != null),
+      33           0 :         assert(needsMentoring != null),
+      34           0 :         assert(availableToMentor != null);
+      35             : 
+      36           0 :   Map<String, dynamic> toJson() => {
+      37           0 :         "name": name,
+      38           0 :         "username": username,
+      39           0 :         "email": email,
+      40           0 :         "password": password,
+      41           0 :         "terms_and_conditions_checked": acceptedTermsAndConditions,
+      42           0 :         "need_mentoring": needsMentoring,
+      43           0 :         "available_to_mentor": availableToMentor,
+      44             :       };
+      45             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/relation_requests.dart.func-sort-c.html b/coverage/lib/remote/requests/relation_requests.dart.func-sort-c.html new file mode 100644 index 0000000..bff3370 --- /dev/null +++ b/coverage/lib/remote/requests/relation_requests.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/relation_requests.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - relation_requests.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0120.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/relation_requests.dart.func.html b/coverage/lib/remote/requests/relation_requests.dart.func.html new file mode 100644 index 0000000..1605fae --- /dev/null +++ b/coverage/lib/remote/requests/relation_requests.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/relation_requests.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - relation_requests.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0120.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/relation_requests.dart.gcov.html b/coverage/lib/remote/requests/relation_requests.dart.gcov.html new file mode 100644 index 0000000..43e565e --- /dev/null +++ b/coverage/lib/remote/requests/relation_requests.dart.gcov.html @@ -0,0 +1,105 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/relation_requests.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - relation_requests.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0120.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : /// Rpresents all data necessary to send a mentorship relation request.
+       2             : /// [mentorId] represents mentor user id
+       3             : /// [menteeId] represents mentee user id
+       4             : /// [notes] represents a description of the mentorship relation
+       5             : /// [endDate] represents end date of the mentorship relation
+       6             : class RelationRequest {
+       7             :   final int mentorId;
+       8             :   final int menteeId;
+       9             :   final String notes;
+      10             :   final int endDate;
+      11             : 
+      12           0 :   RelationRequest({this.mentorId, this.menteeId, this.notes, this.endDate});
+      13             : 
+      14           0 :   factory RelationRequest.fromJson(Map<String, dynamic> json) => RelationRequest(
+      15           0 :         mentorId: json["mentor_id"],
+      16           0 :         menteeId: json["mentee_id"],
+      17           0 :         notes: json["notes"],
+      18           0 :         endDate: json["end_date"],
+      19             :       );
+      20             : 
+      21           0 :   Map<String, dynamic> toJson() {
+      22           0 :     final Map<String, dynamic> data = new Map<String, dynamic>();
+      23           0 :     data['mentor_id'] = this.mentorId;
+      24           0 :     data['mentee_id'] = this.menteeId;
+      25           0 :     data['notes'] = this.notes;
+      26           0 :     data['end_date'] = this.endDate;
+      27             :     return data;
+      28             :   }
+      29             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/task_request.dart.func-sort-c.html b/coverage/lib/remote/requests/task_request.dart.func-sort-c.html new file mode 100644 index 0000000..70c08c4 --- /dev/null +++ b/coverage/lib/remote/requests/task_request.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/task_request.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - task_request.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:060.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/task_request.dart.func.html b/coverage/lib/remote/requests/task_request.dart.func.html new file mode 100644 index 0000000..3cd0458 --- /dev/null +++ b/coverage/lib/remote/requests/task_request.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/task_request.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - task_request.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:060.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/requests/task_request.dart.gcov.html b/coverage/lib/remote/requests/task_request.dart.gcov.html new file mode 100644 index 0000000..4cc8f2b --- /dev/null +++ b/coverage/lib/remote/requests/task_request.dart.gcov.html @@ -0,0 +1,92 @@ + + + + + + + LCOV - lcov.info - lib/remote/requests/task_request.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/requests - task_request.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:060.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'package:flutter/cupertino.dart';
+       2             : 
+       3             : class TaskRequest {
+       4             :   String description;
+       5             : 
+       6           0 :   TaskRequest({@required this.description});
+       7             : 
+       8           0 :   factory TaskRequest.fromJson(Map<String, dynamic> json) =>
+       9           0 :       TaskRequest(description: json["description"]);
+      10             : 
+      11           0 :   Map<String, dynamic> toJson() {
+      12           0 :     final Map<String, dynamic> data = new Map<String, dynamic>();
+      13           0 :     data['description'] = this.description;
+      14             :     return data;
+      15             :   }
+      16             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/responses/auth_token.dart.func-sort-c.html b/coverage/lib/remote/responses/auth_token.dart.func-sort-c.html new file mode 100644 index 0000000..36a8774 --- /dev/null +++ b/coverage/lib/remote/responses/auth_token.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/responses/auth_token.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/responses - auth_token.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1333.3 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/responses/auth_token.dart.func.html b/coverage/lib/remote/responses/auth_token.dart.func.html new file mode 100644 index 0000000..66cf98a --- /dev/null +++ b/coverage/lib/remote/responses/auth_token.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/responses/auth_token.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/responses - auth_token.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1333.3 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/responses/auth_token.dart.gcov.html b/coverage/lib/remote/responses/auth_token.dart.gcov.html new file mode 100644 index 0000000..c027a23 --- /dev/null +++ b/coverage/lib/remote/responses/auth_token.dart.gcov.html @@ -0,0 +1,88 @@ + + + + + + + LCOV - lcov.info - lib/remote/responses/auth_token.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/responses - auth_token.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1333.3 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : /// This class represents all data necessary to create an authentication token.
+       2             : /// [authToken] represents an authentication token
+       3             : /// [expiry] represents the expiry timestamp
+       4             : class AuthToken {
+       5             :   final String token;
+       6             :   final double accessExpiry;
+       7             : 
+       8           1 :   AuthToken(this.token, this.accessExpiry);
+       9             : 
+      10           0 :   factory AuthToken.fromJson(Map<String, dynamic> json) =>
+      11           0 :       AuthToken(json["access_token"], json["access_expiry"]);
+      12             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/responses/index-sort-f.html b/coverage/lib/remote/responses/index-sort-f.html new file mode 100644 index 0000000..64e925b --- /dev/null +++ b/coverage/lib/remote/responses/index-sort-f.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - lib/remote/responses + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/responsesHitTotalCoverage
Test:lcov.infoLines:1333.3 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_token.dart +
33.3%33.3%
+
33.3 %1 / 3-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/responses/index-sort-l.html b/coverage/lib/remote/responses/index-sort-l.html new file mode 100644 index 0000000..934d018 --- /dev/null +++ b/coverage/lib/remote/responses/index-sort-l.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - lib/remote/responses + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/responsesHitTotalCoverage
Test:lcov.infoLines:1333.3 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_token.dart +
33.3%33.3%
+
33.3 %1 / 3-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/responses/index.html b/coverage/lib/remote/responses/index.html new file mode 100644 index 0000000..b6d3bca --- /dev/null +++ b/coverage/lib/remote/responses/index.html @@ -0,0 +1,93 @@ + + + + + + + LCOV - lcov.info - lib/remote/responses + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/responsesHitTotalCoverage
Test:lcov.infoLines:1333.3 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_token.dart +
33.3%33.3%
+
33.3 %1 / 3-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/auth_service.chopper.dart.func-sort-c.html b/coverage/lib/remote/services/auth_service.chopper.dart.func-sort-c.html new file mode 100644 index 0000000..b3e4257 --- /dev/null +++ b/coverage/lib/remote/services/auth_service.chopper.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/auth_service.chopper.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - auth_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:080.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/auth_service.chopper.dart.func.html b/coverage/lib/remote/services/auth_service.chopper.dart.func.html new file mode 100644 index 0000000..f6315fb --- /dev/null +++ b/coverage/lib/remote/services/auth_service.chopper.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/auth_service.chopper.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - auth_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:080.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/auth_service.chopper.dart.gcov.html b/coverage/lib/remote/services/auth_service.chopper.dart.gcov.html new file mode 100644 index 0000000..45c467c --- /dev/null +++ b/coverage/lib/remote/services/auth_service.chopper.dart.gcov.html @@ -0,0 +1,110 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/auth_service.chopper.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - auth_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:080.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : // GENERATED CODE - DO NOT MODIFY BY HAND
+       2             : 
+       3             : part of 'auth_service.dart';
+       4             : 
+       5             : // **************************************************************************
+       6             : // ChopperGenerator
+       7             : // **************************************************************************
+       8             : 
+       9             : // ignore_for_file: always_put_control_body_on_new_line, always_specify_types, prefer_const_declarations
+      10             : class _$AuthService extends AuthService {
+      11           0 :   _$AuthService([ChopperClient client]) {
+      12             :     if (client == null) return;
+      13           0 :     this.client = client;
+      14             :   }
+      15             : 
+      16             :   @override
+      17             :   final definitionType = AuthService;
+      18             : 
+      19           0 :   @override
+      20             :   Future<Response<Map<String, dynamic>>> login(Login login) {
+      21             :     final $url = 'login';
+      22             :     final $body = login;
+      23           0 :     final $request = Request('POST', $url, client.baseUrl, body: $body);
+      24           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      25             :   }
+      26             : 
+      27           0 :   @override
+      28             :   Future<Response<Object>> register(Register register) {
+      29             :     final $url = 'register';
+      30             :     final $body = register;
+      31           0 :     final $request = Request('POST', $url, client.baseUrl, body: $body);
+      32           0 :     return client.send<Object, Object>($request);
+      33             :   }
+      34             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/auth_service.dart.func-sort-c.html b/coverage/lib/remote/services/auth_service.dart.func-sort-c.html new file mode 100644 index 0000000..363c5c1 --- /dev/null +++ b/coverage/lib/remote/services/auth_service.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/auth_service.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - auth_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:080.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/auth_service.dart.func.html b/coverage/lib/remote/services/auth_service.dart.func.html new file mode 100644 index 0000000..a984821 --- /dev/null +++ b/coverage/lib/remote/services/auth_service.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/auth_service.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - auth_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:080.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/auth_service.dart.gcov.html b/coverage/lib/remote/services/auth_service.dart.gcov.html new file mode 100644 index 0000000..c236653 --- /dev/null +++ b/coverage/lib/remote/services/auth_service.dart.gcov.html @@ -0,0 +1,105 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/auth_service.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - auth_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:080.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'package:chopper/chopper.dart';
+       2             : import 'package:mentorship_client/constants.dart';
+       3             : import 'package:mentorship_client/remote/requests/login.dart';
+       4             : import 'package:mentorship_client/remote/requests/register.dart';
+       5             : 
+       6             : part 'auth_service.chopper.dart';
+       7             : 
+       8             : @ChopperApi(baseUrl: "")
+       9             : abstract class AuthService extends ChopperService {
+      10             :   @Post(path: "login")
+      11             :   Future<Response<Map<String, dynamic>>> login(@Body() Login login);
+      12             : 
+      13             :   @Post(path: "register")
+      14             :   Future<Response<Object>> register(@Body() Register register);
+      15             : 
+      16           0 :   static AuthService create() {
+      17           0 :     final client = ChopperClient(
+      18             :         baseUrl: API_URL,
+      19           0 :         services: [
+      20           0 :           _$AuthService(),
+      21             :         ],
+      22           0 :         converter: JsonConverter(),
+      23           0 :         interceptors: [
+      24           0 :           HttpLoggingInterceptor(),
+      25             :         ]);
+      26             : 
+      27           0 :     return _$AuthService(client);
+      28             :   }
+      29             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/index-sort-f.html b/coverage/lib/remote/services/index-sort-f.html new file mode 100644 index 0000000..1f7dbfa --- /dev/null +++ b/coverage/lib/remote/services/index-sort-f.html @@ -0,0 +1,163 @@ + + + + + + + LCOV - lcov.info - lib/remote/services + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/servicesHitTotalCoverage
Test:lcov.infoLines:01100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
relation_service.chopper.dart +
0.0%
+
0.0 %0 / 27-0 / 0
relation_service.dart +
0.0%
+
0.0 %0 / 9-0 / 0
user_service.dart +
0.0%
+
0.0 %0 / 9-0 / 0
auth_service.chopper.dart +
0.0%
+
0.0 %0 / 8-0 / 0
task_service.chopper.dart +
0.0%
+
0.0 %0 / 18-0 / 0
auth_service.dart +
0.0%
+
0.0 %0 / 8-0 / 0
task_service.dart +
0.0%
+
0.0 %0 / 9-0 / 0
user_service.chopper.dart +
0.0%
+
0.0 %0 / 22-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/index-sort-l.html b/coverage/lib/remote/services/index-sort-l.html new file mode 100644 index 0000000..806fdef --- /dev/null +++ b/coverage/lib/remote/services/index-sort-l.html @@ -0,0 +1,163 @@ + + + + + + + LCOV - lcov.info - lib/remote/services + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/servicesHitTotalCoverage
Test:lcov.infoLines:01100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_service.chopper.dart +
0.0%
+
0.0 %0 / 8-0 / 0
auth_service.dart +
0.0%
+
0.0 %0 / 8-0 / 0
relation_service.dart +
0.0%
+
0.0 %0 / 9-0 / 0
user_service.dart +
0.0%
+
0.0 %0 / 9-0 / 0
task_service.dart +
0.0%
+
0.0 %0 / 9-0 / 0
task_service.chopper.dart +
0.0%
+
0.0 %0 / 18-0 / 0
user_service.chopper.dart +
0.0%
+
0.0 %0 / 22-0 / 0
relation_service.chopper.dart +
0.0%
+
0.0 %0 / 27-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/index.html b/coverage/lib/remote/services/index.html new file mode 100644 index 0000000..450d51a --- /dev/null +++ b/coverage/lib/remote/services/index.html @@ -0,0 +1,163 @@ + + + + + + + LCOV - lcov.info - lib/remote/services + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/servicesHitTotalCoverage
Test:lcov.infoLines:01100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_service.chopper.dart +
0.0%
+
0.0 %0 / 8-0 / 0
auth_service.dart +
0.0%
+
0.0 %0 / 8-0 / 0
relation_service.chopper.dart +
0.0%
+
0.0 %0 / 27-0 / 0
relation_service.dart +
0.0%
+
0.0 %0 / 9-0 / 0
task_service.chopper.dart +
0.0%
+
0.0 %0 / 18-0 / 0
task_service.dart +
0.0%
+
0.0 %0 / 9-0 / 0
user_service.chopper.dart +
0.0%
+
0.0 %0 / 22-0 / 0
user_service.dart +
0.0%
+
0.0 %0 / 9-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/relation_service.chopper.dart.func-sort-c.html b/coverage/lib/remote/services/relation_service.chopper.dart.func-sort-c.html new file mode 100644 index 0000000..00aaeec --- /dev/null +++ b/coverage/lib/remote/services/relation_service.chopper.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/relation_service.chopper.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - relation_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0270.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/relation_service.chopper.dart.func.html b/coverage/lib/remote/services/relation_service.chopper.dart.func.html new file mode 100644 index 0000000..64aec3b --- /dev/null +++ b/coverage/lib/remote/services/relation_service.chopper.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/relation_service.chopper.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - relation_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0270.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/relation_service.chopper.dart.gcov.html b/coverage/lib/remote/services/relation_service.chopper.dart.gcov.html new file mode 100644 index 0000000..d7e330e --- /dev/null +++ b/coverage/lib/remote/services/relation_service.chopper.dart.gcov.html @@ -0,0 +1,145 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/relation_service.chopper.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - relation_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0270.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : // GENERATED CODE - DO NOT MODIFY BY HAND
+       2             : 
+       3             : part of 'relation_service.dart';
+       4             : 
+       5             : // **************************************************************************
+       6             : // ChopperGenerator
+       7             : // **************************************************************************
+       8             : 
+       9             : // ignore_for_file: always_put_control_body_on_new_line, always_specify_types, prefer_const_declarations
+      10             : class _$RelationService extends RelationService {
+      11           0 :   _$RelationService([ChopperClient client]) {
+      12             :     if (client == null) return;
+      13           0 :     this.client = client;
+      14             :   }
+      15             : 
+      16             :   @override
+      17             :   final definitionType = RelationService;
+      18             : 
+      19           0 :   @override
+      20             :   Future<Response<List<dynamic>>> getAllRelations() {
+      21             :     final $url = 'mentorship_relations';
+      22           0 :     final $request = Request('GET', $url, client.baseUrl);
+      23           0 :     return client.send<List<dynamic>, List<dynamic>>($request);
+      24             :   }
+      25             : 
+      26           0 :   @override
+      27             :   Future<Response<Map<String, dynamic>>> acceptRelation(int relationId) {
+      28           0 :     final $url = 'mentorship_relation/$relationId/accept';
+      29           0 :     final $request = Request('PUT', $url, client.baseUrl);
+      30           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      31             :   }
+      32             : 
+      33           0 :   @override
+      34             :   Future<Response<Map<String, dynamic>>> rejectRelationship(int relationId) {
+      35           0 :     final $url = 'mentorship_relation/$relationId/reject';
+      36           0 :     final $request = Request('PUT', $url, client.baseUrl);
+      37           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      38             :   }
+      39             : 
+      40           0 :   @override
+      41             :   Future<Response<Map<String, dynamic>>> deleteRelationship(int relationId) {
+      42           0 :     final $url = 'mentorship_relation/$relationId';
+      43           0 :     final $request = Request('DELETE', $url, client.baseUrl);
+      44           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      45             :   }
+      46             : 
+      47           0 :   @override
+      48             :   Future<Response<Map<String, dynamic>>> cancelRelationship(int relationId) {
+      49           0 :     final $url = 'mentorship_relation/$relationId/cancel';
+      50           0 :     final $request = Request('PUT', $url, client.baseUrl);
+      51           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      52             :   }
+      53             : 
+      54           0 :   @override
+      55             :   Future<Response<Map<String, dynamic>>> sendRequest(
+      56             :       RelationRequest relationRequest) {
+      57             :     final $url = 'mentorship_relation/send_request';
+      58             :     final $body = relationRequest;
+      59           0 :     final $request = Request('POST', $url, client.baseUrl, body: $body);
+      60           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      61             :   }
+      62             : 
+      63           0 :   @override
+      64             :   Future<Response<Map<String, dynamic>>> getCurrentRelation() {
+      65             :     final $url = 'mentorship_relations/current';
+      66           0 :     final $request = Request('GET', $url, client.baseUrl);
+      67           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      68             :   }
+      69             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/relation_service.dart.func-sort-c.html b/coverage/lib/remote/services/relation_service.dart.func-sort-c.html new file mode 100644 index 0000000..b021cb9 --- /dev/null +++ b/coverage/lib/remote/services/relation_service.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/relation_service.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - relation_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/relation_service.dart.func.html b/coverage/lib/remote/services/relation_service.dart.func.html new file mode 100644 index 0000000..114714b --- /dev/null +++ b/coverage/lib/remote/services/relation_service.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/relation_service.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - relation_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/relation_service.dart.gcov.html b/coverage/lib/remote/services/relation_service.dart.gcov.html new file mode 100644 index 0000000..97f8fb7 --- /dev/null +++ b/coverage/lib/remote/services/relation_service.dart.gcov.html @@ -0,0 +1,129 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/relation_service.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - relation_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'package:chopper/chopper.dart';
+       2             : import 'package:mentorship_client/constants.dart';
+       3             : import 'package:mentorship_client/remote/auth_interceptor.dart';
+       4             : import 'package:mentorship_client/remote/requests/relation_requests.dart';
+       5             : 
+       6             : part 'relation_service.chopper.dart';
+       7             : 
+       8             : @ChopperApi(baseUrl: "")
+       9             : abstract class RelationService extends ChopperService {
+      10             :   /// Returns all mentorship requests and relations of the current user
+      11             :   @Get(path: "mentorship_relations")
+      12             :   Future<Response<List<dynamic>>> getAllRelations();
+      13             : 
+      14             :   /// Performs the acceptance of a mentorship request
+      15             :   @Put(path: "mentorship_relation/{relation_id}/accept")
+      16             :   Future<Response<Map<String, dynamic>>> acceptRelation(@Path("relation_id") int relationId);
+      17             : 
+      18             :   /// Performs the rejection of a mentorship request
+      19             :   @Put(path: "mentorship_relation/{relation_id}/reject")
+      20             :   Future<Response<Map<String, dynamic>>> rejectRelationship(@Path("relation_id") int relationId);
+      21             : 
+      22             :   /// Performs the deletion of a mentorship request
+      23             :   @Delete(path: "mentorship_relation/{relation_id}")
+      24             :   Future<Response<Map<String, dynamic>>> deleteRelationship(@Path("relation_id") int relationId);
+      25             : 
+      26             :   /// Performs the cancellation of a mentorship relation
+      27             :   @Put(path: "mentorship_relation/{relation_id}/cancel")
+      28             :   Future<Response<Map<String, dynamic>>> cancelRelationship(@Path("relation_id") int relationId);
+      29             : 
+      30             :   /// Performs sending a mentorship request
+      31             :   /// [relationRequest] data required to send a mentorship request
+      32             :   @Post(path: "mentorship_relation/send_request")
+      33             :   Future<Response<Map<String, dynamic>>> sendRequest(@Body() RelationRequest relationRequest);
+      34             : 
+      35             :   /// Returns the current mentorship relation
+      36             :   @Get(path: "mentorship_relations/current")
+      37             :   Future<Response<Map<String, dynamic>>> getCurrentRelation();
+      38             : 
+      39           0 :   static RelationService create() {
+      40           0 :     final client = ChopperClient(
+      41             :         baseUrl: API_URL,
+      42           0 :         services: [
+      43           0 :           _$RelationService(),
+      44             :         ],
+      45           0 :         converter: JsonConverter(),
+      46           0 :         interceptors: [
+      47           0 :           HttpLoggingInterceptor(),
+      48           0 :           AuthInterceptor(),
+      49             :         ]);
+      50             : 
+      51           0 :     return _$RelationService(client);
+      52             :   }
+      53             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/task_service.chopper.dart.func-sort-c.html b/coverage/lib/remote/services/task_service.chopper.dart.func-sort-c.html new file mode 100644 index 0000000..6afb7a2 --- /dev/null +++ b/coverage/lib/remote/services/task_service.chopper.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/task_service.chopper.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - task_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0180.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/task_service.chopper.dart.func.html b/coverage/lib/remote/services/task_service.chopper.dart.func.html new file mode 100644 index 0000000..401089e --- /dev/null +++ b/coverage/lib/remote/services/task_service.chopper.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/task_service.chopper.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - task_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0180.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/task_service.chopper.dart.gcov.html b/coverage/lib/remote/services/task_service.chopper.dart.gcov.html new file mode 100644 index 0000000..0f7c89e --- /dev/null +++ b/coverage/lib/remote/services/task_service.chopper.dart.gcov.html @@ -0,0 +1,126 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/task_service.chopper.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - task_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0180.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : // GENERATED CODE - DO NOT MODIFY BY HAND
+       2             : 
+       3             : part of 'task_service.dart';
+       4             : 
+       5             : // **************************************************************************
+       6             : // ChopperGenerator
+       7             : // **************************************************************************
+       8             : 
+       9             : // ignore_for_file: always_put_control_body_on_new_line, always_specify_types, prefer_const_declarations
+      10             : class _$TaskService extends TaskService {
+      11           0 :   _$TaskService([ChopperClient client]) {
+      12             :     if (client == null) return;
+      13           0 :     this.client = client;
+      14             :   }
+      15             : 
+      16             :   @override
+      17             :   final definitionType = TaskService;
+      18             : 
+      19           0 :   @override
+      20             :   Future<Response<List<dynamic>>> getAllTasksFromMentorshipRelation(
+      21             :       int relationId) {
+      22           0 :     final $url = 'mentorship_relation/$relationId/tasks';
+      23           0 :     final $request = Request('GET', $url, client.baseUrl);
+      24           0 :     return client.send<List<dynamic>, List<dynamic>>($request);
+      25             :   }
+      26             : 
+      27           0 :   @override
+      28             :   Future<Response<Map<String, dynamic>>> createTask(
+      29             :       int requestId, TaskRequest taskRequest) {
+      30           0 :     final $url = 'mentorship_relation/$requestId/task';
+      31             :     final $body = taskRequest;
+      32           0 :     final $request = Request('POST', $url, client.baseUrl, body: $body);
+      33           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      34             :   }
+      35             : 
+      36           0 :   @override
+      37             :   Future<Response<Map<String, dynamic>>> completeTask(
+      38             :       int requestId, int taskId) {
+      39           0 :     final $url = 'mentorship_relation/$requestId/task/$taskId/complete';
+      40           0 :     final $request = Request('PUT', $url, client.baseUrl);
+      41           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      42             :   }
+      43             : 
+      44           0 :   @override
+      45             :   Future<Response<Map<String, dynamic>>> deleteTask(int requestId, int taskId) {
+      46           0 :     final $url = 'mentorship_relation/$requestId/task/$taskId';
+      47           0 :     final $request = Request('DELETE', $url, client.baseUrl);
+      48           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      49             :   }
+      50             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/task_service.dart.func-sort-c.html b/coverage/lib/remote/services/task_service.dart.func-sort-c.html new file mode 100644 index 0000000..2e6392c --- /dev/null +++ b/coverage/lib/remote/services/task_service.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/task_service.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - task_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/task_service.dart.func.html b/coverage/lib/remote/services/task_service.dart.func.html new file mode 100644 index 0000000..511592b --- /dev/null +++ b/coverage/lib/remote/services/task_service.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/task_service.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - task_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/task_service.dart.gcov.html b/coverage/lib/remote/services/task_service.dart.gcov.html new file mode 100644 index 0000000..740dc61 --- /dev/null +++ b/coverage/lib/remote/services/task_service.dart.gcov.html @@ -0,0 +1,118 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/task_service.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - task_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'package:chopper/chopper.dart';
+       2             : import 'package:mentorship_client/constants.dart';
+       3             : import 'package:mentorship_client/remote/auth_interceptor.dart';
+       4             : import 'package:mentorship_client/remote/requests/task_request.dart';
+       5             : 
+       6             : part 'task_service.chopper.dart';
+       7             : 
+       8             : @ChopperApi(baseUrl: "")
+       9             : abstract class TaskService extends ChopperService {
+      10             :   /// Returns all the tasks from a mentorship relation
+      11             :   /// [relationId] id of the mentorship relation
+      12             :   @Get(path: "mentorship_relation/{relation_id}/tasks")
+      13             :   Future<Response<List<dynamic>>> getAllTasksFromMentorshipRelation(
+      14             :       @Path("relation_id") int relationId);
+      15             : 
+      16             :   @Post(path: "mentorship_relation/{request_id}/task")
+      17             :   Future<Response<Map<String, dynamic>>> createTask(
+      18             :       @Path("request_id") int requestId, @Body() TaskRequest taskRequest);
+      19             : 
+      20             :   @Put(path: "mentorship_relation/{request_id}/task/{task_id}/complete")
+      21             :   Future<Response<Map<String, dynamic>>> completeTask(
+      22             :       @Path("request_id") int requestId, @Path("task_id") int taskId);
+      23             : 
+      24             :   @Delete(path: "mentorship_relation/{request_id}/task/{task_id}")
+      25             :   Future<Response<Map<String, dynamic>>> deleteTask(
+      26             :       @Path("request_id") int requestId, @Path("task_id") int taskId);
+      27             : 
+      28           0 :   static TaskService create() {
+      29           0 :     final client = ChopperClient(
+      30             :         baseUrl: API_URL,
+      31           0 :         services: [
+      32           0 :           _$TaskService(),
+      33             :         ],
+      34           0 :         converter: JsonConverter(),
+      35           0 :         interceptors: [
+      36           0 :           HttpLoggingInterceptor(),
+      37           0 :           AuthInterceptor(),
+      38             :         ]);
+      39             : 
+      40           0 :     return _$TaskService(client);
+      41             :   }
+      42             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/user_service.chopper.dart.func-sort-c.html b/coverage/lib/remote/services/user_service.chopper.dart.func-sort-c.html new file mode 100644 index 0000000..a40cab3 --- /dev/null +++ b/coverage/lib/remote/services/user_service.chopper.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/user_service.chopper.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - user_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0220.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/user_service.chopper.dart.func.html b/coverage/lib/remote/services/user_service.chopper.dart.func.html new file mode 100644 index 0000000..7456824 --- /dev/null +++ b/coverage/lib/remote/services/user_service.chopper.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/user_service.chopper.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - user_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0220.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/user_service.chopper.dart.gcov.html b/coverage/lib/remote/services/user_service.chopper.dart.gcov.html new file mode 100644 index 0000000..0bee108 --- /dev/null +++ b/coverage/lib/remote/services/user_service.chopper.dart.gcov.html @@ -0,0 +1,139 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/user_service.chopper.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - user_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0220.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : // GENERATED CODE - DO NOT MODIFY BY HAND
+       2             : 
+       3             : part of 'user_service.dart';
+       4             : 
+       5             : // **************************************************************************
+       6             : // ChopperGenerator
+       7             : // **************************************************************************
+       8             : 
+       9             : // ignore_for_file: always_put_control_body_on_new_line, always_specify_types, prefer_const_declarations
+      10             : class _$UserService extends UserService {
+      11           0 :   _$UserService([ChopperClient client]) {
+      12             :     if (client == null) return;
+      13           0 :     this.client = client;
+      14             :   }
+      15             : 
+      16             :   @override
+      17             :   final definitionType = UserService;
+      18             : 
+      19           0 :   @override
+      20             :   Future<Response<Map<String, dynamic>>> getHomeStats() {
+      21             :     final $url = 'home';
+      22           0 :     final $request = Request('GET', $url, client.baseUrl);
+      23           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      24             :   }
+      25             : 
+      26           0 :   @override
+      27             :   Future<Response<List<dynamic>>> getVerifiedUsers({int page, int perPage = 20}) {
+      28             :     final $url = 'users/verified';
+      29           0 :     final $params = <String, dynamic>{'page': page, 'per_page': perPage};
+      30           0 :     final $request = Request('GET', $url, client.baseUrl, parameters: $params);
+      31           0 :     return client.send<List<dynamic>, List<dynamic>>($request);
+      32             :   }
+      33             : 
+      34           0 :   @override
+      35             :   Future<Response<Map<String, dynamic>>> getCurrentUser() {
+      36             :     final $url = 'user';
+      37           0 :     final $request = Request('GET', $url, client.baseUrl);
+      38           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      39             :   }
+      40             : 
+      41           0 :   @override
+      42             :   Future<Response<Map<String, dynamic>>> getUser(int userId) {
+      43           0 :     final $url = 'user/$userId';
+      44           0 :     final $request = Request('GET', $url, client.baseUrl);
+      45           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      46             :   }
+      47             : 
+      48           0 :   @override
+      49             :   Future<Response<Map<String, dynamic>>> updateUser(User user) {
+      50             :     final $url = 'user';
+      51             :     final $body = user;
+      52           0 :     final $request = Request('PUT', $url, client.baseUrl, body: $body);
+      53           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      54             :   }
+      55             : 
+      56           0 :   @override
+      57             :   Future<Response<Map<String, dynamic>>> changePassword(ChangePassword changePassword) {
+      58             :     final $url = 'user/change_password';
+      59             :     final $body = changePassword;
+      60           0 :     final $request = Request('PUT', $url, client.baseUrl, body: $body);
+      61           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
+      62             :   }
+      63             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/user_service.dart.func-sort-c.html b/coverage/lib/remote/services/user_service.dart.func-sort-c.html new file mode 100644 index 0000000..163952d --- /dev/null +++ b/coverage/lib/remote/services/user_service.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/user_service.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - user_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/user_service.dart.func.html b/coverage/lib/remote/services/user_service.dart.func.html new file mode 100644 index 0000000..bc0fff1 --- /dev/null +++ b/coverage/lib/remote/services/user_service.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/user_service.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - user_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/remote/services/user_service.dart.gcov.html b/coverage/lib/remote/services/user_service.dart.gcov.html new file mode 100644 index 0000000..d9dae3f --- /dev/null +++ b/coverage/lib/remote/services/user_service.dart.gcov.html @@ -0,0 +1,128 @@ + + + + + + + LCOV - lcov.info - lib/remote/services/user_service.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/remote/services - user_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'package:chopper/chopper.dart';
+       2             : import 'package:mentorship_client/constants.dart';
+       3             : import 'package:mentorship_client/remote/auth_interceptor.dart';
+       4             : import 'package:mentorship_client/remote/models/user.dart';
+       5             : import 'package:mentorship_client/remote/requests/change_password.dart';
+       6             : 
+       7             : part 'user_service.chopper.dart';
+       8             : 
+       9             : @ChopperApi(baseUrl: "")
+      10             : abstract class UserService extends ChopperService {
+      11             :   /// Returns the current user's home screen statistics
+      12             :   @Get(path: "home")
+      13             :   Future<Response<Map<String, dynamic>>> getHomeStats();
+      14             : 
+      15             :   /// Returns all users, with email verified, of the system
+      16             :   @Get(path: "users/verified")
+      17             :   Future<Response<List<dynamic>>> getVerifiedUsers({
+      18             :     @Query("page") int page,
+      19             :     @Query("per_page") int perPage = 20,
+      20             :   });
+      21             : 
+      22             :   /// Returns the current user profile
+      23             :   @Get(path: "user")
+      24             :   Future<Response<Map<String, dynamic>>> getCurrentUser();
+      25             : 
+      26             :   /// Returns a specified user's public profile of the system
+      27             :   @Get(path: "user/{userId}")
+      28             :   Future<Response<Map<String, dynamic>>> getUser(@Path("userId") int userId);
+      29             : 
+      30             :   /// Updates the current user's profile
+      31             :   @Put(path: "user")
+      32             :   Future<Response<Map<String, dynamic>>> updateUser(@Body() User user);
+      33             : 
+      34             :   /// Updates the current user's current password
+      35             :   @Put(path: "user/change_password")
+      36             :   Future<Response<Map<String, dynamic>>> changePassword(@Body() ChangePassword changePassword);
+      37             : 
+      38           0 :   static UserService create() {
+      39           0 :     final client = ChopperClient(
+      40             :         baseUrl: API_URL,
+      41           0 :         services: [
+      42           0 :           _$UserService(),
+      43             :         ],
+      44           0 :         converter: JsonConverter(),
+      45           0 :         interceptors: [
+      46           0 :           HttpLoggingInterceptor(),
+      47           0 :           AuthInterceptor(),
+      48             :         ]);
+      49             : 
+      50           0 :     return _$UserService(client);
+      51             :   }
+      52             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/screens/login/bloc/index-sort-f.html b/coverage/lib/screens/login/bloc/index-sort-f.html new file mode 100644 index 0000000..bc55a6e --- /dev/null +++ b/coverage/lib/screens/login/bloc/index-sort-f.html @@ -0,0 +1,113 @@ + + + + + + + LCOV - lcov.info - lib/screens/login/bloc + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/screens/login/blocHitTotalCoverage
Test:lcov.infoLines:2121100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
login_state.dart +
100.0%
+
100.0 %7 / 7-0 / 0
login_event.dart +
100.0%
+
100.0 %4 / 4-0 / 0
login_bloc.dart +
100.0%
+
100.0 %10 / 10-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/screens/login/bloc/index-sort-l.html b/coverage/lib/screens/login/bloc/index-sort-l.html new file mode 100644 index 0000000..f657c7b --- /dev/null +++ b/coverage/lib/screens/login/bloc/index-sort-l.html @@ -0,0 +1,113 @@ + + + + + + + LCOV - lcov.info - lib/screens/login/bloc + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/screens/login/blocHitTotalCoverage
Test:lcov.infoLines:2121100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
login_event.dart +
100.0%
+
100.0 %4 / 4-0 / 0
login_state.dart +
100.0%
+
100.0 %7 / 7-0 / 0
login_bloc.dart +
100.0%
+
100.0 %10 / 10-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/screens/login/bloc/index.html b/coverage/lib/screens/login/bloc/index.html new file mode 100644 index 0000000..57068f5 --- /dev/null +++ b/coverage/lib/screens/login/bloc/index.html @@ -0,0 +1,113 @@ + + + + + + + LCOV - lcov.info - lib/screens/login/bloc + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/screens/login/blocHitTotalCoverage
Test:lcov.infoLines:2121100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
login_bloc.dart +
100.0%
+
100.0 %10 / 10-0 / 0
login_event.dart +
100.0%
+
100.0 %4 / 4-0 / 0
login_state.dart +
100.0%
+
100.0 %7 / 7-0 / 0
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/screens/login/bloc/login_bloc.dart.func-sort-c.html b/coverage/lib/screens/login/bloc/login_bloc.dart.func-sort-c.html new file mode 100644 index 0000000..5c4b86e --- /dev/null +++ b/coverage/lib/screens/login/bloc/login_bloc.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/screens/login/bloc/login_bloc.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/screens/login/bloc - login_bloc.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1010100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/screens/login/bloc/login_bloc.dart.func.html b/coverage/lib/screens/login/bloc/login_bloc.dart.func.html new file mode 100644 index 0000000..73f8361 --- /dev/null +++ b/coverage/lib/screens/login/bloc/login_bloc.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/screens/login/bloc/login_bloc.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/screens/login/bloc - login_bloc.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1010100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/screens/login/bloc/login_bloc.dart.gcov.html b/coverage/lib/screens/login/bloc/login_bloc.dart.gcov.html new file mode 100644 index 0000000..938c0ea --- /dev/null +++ b/coverage/lib/screens/login/bloc/login_bloc.dart.gcov.html @@ -0,0 +1,106 @@ + + + + + + + LCOV - lcov.info - lib/screens/login/bloc/login_bloc.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/screens/login/bloc - login_bloc.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1010100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'package:bloc/bloc.dart';
+       2             : import 'package:mentorship_client/auth/auth_bloc.dart';
+       3             : import 'package:mentorship_client/auth/bloc.dart';
+       4             : import 'package:mentorship_client/remote/repositories/auth_repository.dart';
+       5             : import 'package:mentorship_client/screens/login/bloc/login_event.dart';
+       6             : import 'package:mentorship_client/screens/login/bloc/login_state.dart';
+       7             : 
+       8             : class LoginBloc extends Bloc<LoginEvent, LoginState> {
+       9             :   final AuthRepository authRepository;
+      10             :   final AuthBloc authBloc;
+      11             : 
+      12           1 :   LoginBloc(this.authRepository, this.authBloc);
+      13             : 
+      14           1 :   @override
+      15           1 :   get initialState => LoginInitial();
+      16             : 
+      17             :   @override
+      18           1 :   Stream<LoginState> mapEventToState(event) async* {
+      19           1 :     if (event is LoginButtonPressed) {
+      20           2 :       yield LoginInProgress();
+      21             :       try {
+      22           4 :         final token = await authRepository.login(event.login);
+      23           2 :         yield LoginSuccess();
+      24           4 :         authBloc.add(JustLoggedIn(token.token));
+      25             :       } catch (failure) {
+      26           3 :         yield LoginFailure(failure.message);
+      27             :       }
+      28             :     }
+      29             :   }
+      30             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/screens/login/bloc/login_event.dart.func-sort-c.html b/coverage/lib/screens/login/bloc/login_event.dart.func-sort-c.html new file mode 100644 index 0000000..38a2519 --- /dev/null +++ b/coverage/lib/screens/login/bloc/login_event.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/screens/login/bloc/login_event.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/screens/login/bloc - login_event.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:44100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/screens/login/bloc/login_event.dart.func.html b/coverage/lib/screens/login/bloc/login_event.dart.func.html new file mode 100644 index 0000000..eab1787 --- /dev/null +++ b/coverage/lib/screens/login/bloc/login_event.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/screens/login/bloc/login_event.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/screens/login/bloc - login_event.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:44100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/screens/login/bloc/login_event.dart.gcov.html b/coverage/lib/screens/login/bloc/login_event.dart.gcov.html new file mode 100644 index 0000000..ad6d028 --- /dev/null +++ b/coverage/lib/screens/login/bloc/login_event.dart.gcov.html @@ -0,0 +1,91 @@ + + + + + + + LCOV - lcov.info - lib/screens/login/bloc/login_event.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/screens/login/bloc - login_event.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:44100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'package:equatable/equatable.dart';
+       2             : import 'package:mentorship_client/remote/requests/login.dart';
+       3             : 
+       4             : abstract class LoginEvent extends Equatable {
+       5           2 :   const LoginEvent();
+       6             : }
+       7             : 
+       8             : class LoginButtonPressed extends LoginEvent {
+       9             :   final Login login;
+      10             : 
+      11           2 :   const LoginButtonPressed(this.login);
+      12             : 
+      13           1 :   @override
+      14           2 :   List<Object> get props => [login];
+      15             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/screens/login/bloc/login_state.dart.func-sort-c.html b/coverage/lib/screens/login/bloc/login_state.dart.func-sort-c.html new file mode 100644 index 0000000..1997b00 --- /dev/null +++ b/coverage/lib/screens/login/bloc/login_state.dart.func-sort-c.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/screens/login/bloc/login_state.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/screens/login/bloc - login_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:77100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/screens/login/bloc/login_state.dart.func.html b/coverage/lib/screens/login/bloc/login_state.dart.func.html new file mode 100644 index 0000000..029b062 --- /dev/null +++ b/coverage/lib/screens/login/bloc/login_state.dart.func.html @@ -0,0 +1,72 @@ + + + + + + + LCOV - lcov.info - lib/screens/login/bloc/login_state.dart - functions + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/screens/login/bloc - login_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:77100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ +
+ + + + + + +

Function Name Sort by function nameHit count Sort by hit count
+
+
+ + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/lib/screens/login/bloc/login_state.dart.gcov.html b/coverage/lib/screens/login/bloc/login_state.dart.gcov.html new file mode 100644 index 0000000..6d475b3 --- /dev/null +++ b/coverage/lib/screens/login/bloc/login_state.dart.gcov.html @@ -0,0 +1,101 @@ + + + + + + + LCOV - lcov.info - lib/screens/login/bloc/login_state.dart + + + + + + + + + + + + + + +
LCOV - code coverage report
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Current view:top level - lib/screens/login/bloc - login_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:77100.0 %
Date:2020-06-21 17:54:25Functions:00-
+
+ + + + + + + + +

+
          Line data    Source code
+
+       1             : import 'package:equatable/equatable.dart';
+       2             : 
+       3             : abstract class LoginState extends Equatable {
+       4           2 :   const LoginState();
+       5             : 
+       6           1 :   @override
+       7             :   List<Object> get props => null;
+       8             : }
+       9             : 
+      10             : class LoginInitial extends LoginState {}
+      11             : 
+      12             : class LoginInProgress extends LoginState {}
+      13             : 
+      14             : class LoginSuccess extends LoginState {}
+      15             : 
+      16             : class LoginFailure extends LoginState {
+      17             :   final String message;
+      18             : 
+      19           2 :   const LoginFailure(this.message);
+      20             : 
+      21           2 :   @override
+      22           4 :   List<Object> get props => [message];
+      23           1 :   @override
+      24           2 :   String toString() => 'LoginFailure { error: $message }';
+      25             : }
+
+
+
+ + + + +
Generated by: LCOV version 1.14
+
+ + + diff --git a/coverage/ruby.png b/coverage/ruby.png new file mode 100644 index 0000000000000000000000000000000000000000..991b6d4ec9e78be165e3ef757eed1aada287364d GIT binary patch literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga>?NMQuI!iC1^FceV#7`HfI^%F z9+AZi4BSE>%y{W;-5;PJOS+@4BLl<6e(pbstUx|nfKQ0)e^Y%R^MdiLxj>4`)5S5Q b;#P73kj=!v_*DHKNFRfztDnm{r-UW|iOwIS literal 0 HcmV?d00001 diff --git a/coverage/snow.png b/coverage/snow.png new file mode 100644 index 0000000000000000000000000000000000000000..2cdae107fceec6e7f02ac7acb4a34a82a540caa5 GIT binary patch literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga>?NMQuI!iC1^MM!lvI6;R0X`wF|Ns97GD8ntt^-nBo-U3d c6}OTTfNUlP#;5A{K>8RwUHx3vIVCg!071?oo&W#< literal 0 HcmV?d00001 diff --git a/coverage/updown.png b/coverage/updown.png new file mode 100644 index 0000000000000000000000000000000000000000..aa56a238b3e6c435265250f9266cd1b8caba0f20 GIT binary patch literal 117 zcmeAS@N?(olHy`uVBq!ia0vp^AT}Qd8;}%R+`Ae`*?77*hG?8mPH5^{)z4*}Q$iB}huR`+ literal 0 HcmV?d00001 From ecdd84dc9888c69eeb10c9637cafd6a4a15deb0b Mon Sep 17 00:00:00 2001 From: Techno-Disaster Date: Sun, 21 Jun 2020 18:43:39 +0530 Subject: [PATCH 12/18] fix gitignore --- .gitignore | 2 +- coverage/amber.png | Bin 141 -> 0 bytes coverage/emerald.png | Bin 141 -> 0 bytes coverage/gcov.css | 519 ------------------ coverage/glass.png | Bin 167 -> 0 bytes coverage/index-sort-f.html | 173 ------ coverage/index-sort-l.html | 173 ------ coverage/index.html | 173 ------ coverage/lcov.info | 383 ------------- .../lib/auth/auth_bloc.dart.func-sort-c.html | 72 --- coverage/lib/auth/auth_bloc.dart.func.html | 72 --- coverage/lib/auth/auth_bloc.dart.gcov.html | 117 ---- .../lib/auth/auth_event.dart.func-sort-c.html | 72 --- coverage/lib/auth/auth_event.dart.func.html | 72 --- coverage/lib/auth/auth_event.dart.gcov.html | 100 ---- .../lib/auth/auth_state.dart.func-sort-c.html | 72 --- coverage/lib/auth/auth_state.dart.func.html | 72 --- coverage/lib/auth/auth_state.dart.gcov.html | 102 ---- coverage/lib/auth/index-sort-f.html | 113 ---- coverage/lib/auth/index-sort-l.html | 113 ---- coverage/lib/auth/index.html | 113 ---- coverage/lib/failure.dart.func-sort-c.html | 72 --- coverage/lib/failure.dart.func.html | 72 --- coverage/lib/failure.dart.gcov.html | 89 --- coverage/lib/index-sort-f.html | 93 ---- coverage/lib/index-sort-l.html | 93 ---- coverage/lib/index.html | 93 ---- .../remote/api_manager.dart.func-sort-c.html | 72 --- .../lib/remote/api_manager.dart.func.html | 72 --- .../lib/remote/api_manager.dart.gcov.html | 117 ---- .../auth_interceptor.dart.func-sort-c.html | 72 --- .../remote/auth_interceptor.dart.func.html | 72 --- .../remote/auth_interceptor.dart.gcov.html | 94 ---- coverage/lib/remote/index-sort-f.html | 103 ---- coverage/lib/remote/index-sort-l.html | 103 ---- coverage/lib/remote/index.html | 103 ---- coverage/lib/remote/models/index-sort-f.html | 93 ---- coverage/lib/remote/models/index-sort-l.html | 93 ---- coverage/lib/remote/models/index.html | 93 ---- .../remote/models/user.dart.func-sort-c.html | 72 --- .../lib/remote/models/user.dart.func.html | 72 --- .../lib/remote/models/user.dart.gcov.html | 153 ------ .../auth_repository.dart.func-sort-c.html | 72 --- .../auth_repository.dart.func.html | 72 --- .../auth_repository.dart.gcov.html | 127 ----- .../lib/remote/repositories/index-sort-f.html | 93 ---- .../lib/remote/repositories/index-sort-l.html | 93 ---- coverage/lib/remote/repositories/index.html | 93 ---- .../change_password.dart.func-sort-c.html | 72 --- .../requests/change_password.dart.func.html | 72 --- .../requests/change_password.dart.gcov.html | 98 ---- .../lib/remote/requests/index-sort-f.html | 133 ----- .../lib/remote/requests/index-sort-l.html | 133 ----- coverage/lib/remote/requests/index.html | 133 ----- .../requests/login.dart.func-sort-c.html | 72 --- .../lib/remote/requests/login.dart.func.html | 72 --- .../lib/remote/requests/login.dart.gcov.html | 89 --- .../requests/register.dart.func-sort-c.html | 72 --- .../remote/requests/register.dart.func.html | 72 --- .../remote/requests/register.dart.gcov.html | 121 ---- .../relation_requests.dart.func-sort-c.html | 72 --- .../requests/relation_requests.dart.func.html | 72 --- .../requests/relation_requests.dart.gcov.html | 105 ---- .../task_request.dart.func-sort-c.html | 72 --- .../requests/task_request.dart.func.html | 72 --- .../requests/task_request.dart.gcov.html | 92 ---- .../auth_token.dart.func-sort-c.html | 72 --- .../responses/auth_token.dart.func.html | 72 --- .../responses/auth_token.dart.gcov.html | 88 --- .../lib/remote/responses/index-sort-f.html | 93 ---- .../lib/remote/responses/index-sort-l.html | 93 ---- coverage/lib/remote/responses/index.html | 93 ---- ...auth_service.chopper.dart.func-sort-c.html | 72 --- .../auth_service.chopper.dart.func.html | 72 --- .../auth_service.chopper.dart.gcov.html | 110 ---- .../auth_service.dart.func-sort-c.html | 72 --- .../services/auth_service.dart.func.html | 72 --- .../services/auth_service.dart.gcov.html | 105 ---- .../lib/remote/services/index-sort-f.html | 163 ------ .../lib/remote/services/index-sort-l.html | 163 ------ coverage/lib/remote/services/index.html | 163 ------ ...tion_service.chopper.dart.func-sort-c.html | 72 --- .../relation_service.chopper.dart.func.html | 72 --- .../relation_service.chopper.dart.gcov.html | 145 ----- .../relation_service.dart.func-sort-c.html | 72 --- .../services/relation_service.dart.func.html | 72 --- .../services/relation_service.dart.gcov.html | 129 ----- ...task_service.chopper.dart.func-sort-c.html | 72 --- .../task_service.chopper.dart.func.html | 72 --- .../task_service.chopper.dart.gcov.html | 126 ----- .../task_service.dart.func-sort-c.html | 72 --- .../services/task_service.dart.func.html | 72 --- .../services/task_service.dart.gcov.html | 118 ---- ...user_service.chopper.dart.func-sort-c.html | 72 --- .../user_service.chopper.dart.func.html | 72 --- .../user_service.chopper.dart.gcov.html | 139 ----- .../user_service.dart.func-sort-c.html | 72 --- .../services/user_service.dart.func.html | 72 --- .../services/user_service.dart.gcov.html | 128 ----- .../lib/screens/login/bloc/index-sort-f.html | 113 ---- .../lib/screens/login/bloc/index-sort-l.html | 113 ---- coverage/lib/screens/login/bloc/index.html | 113 ---- .../bloc/login_bloc.dart.func-sort-c.html | 72 --- .../login/bloc/login_bloc.dart.func.html | 72 --- .../login/bloc/login_bloc.dart.gcov.html | 106 ---- .../bloc/login_event.dart.func-sort-c.html | 72 --- .../login/bloc/login_event.dart.func.html | 72 --- .../login/bloc/login_event.dart.gcov.html | 91 --- .../bloc/login_state.dart.func-sort-c.html | 72 --- .../login/bloc/login_state.dart.func.html | 72 --- .../login/bloc/login_state.dart.gcov.html | 101 ---- coverage/ruby.png | Bin 141 -> 0 bytes coverage/snow.png | Bin 141 -> 0 bytes coverage/updown.png | Bin 117 -> 0 bytes 114 files changed, 1 insertion(+), 10803 deletions(-) delete mode 100644 coverage/amber.png delete mode 100644 coverage/emerald.png delete mode 100644 coverage/gcov.css delete mode 100644 coverage/glass.png delete mode 100644 coverage/index-sort-f.html delete mode 100644 coverage/index-sort-l.html delete mode 100644 coverage/index.html delete mode 100644 coverage/lcov.info delete mode 100644 coverage/lib/auth/auth_bloc.dart.func-sort-c.html delete mode 100644 coverage/lib/auth/auth_bloc.dart.func.html delete mode 100644 coverage/lib/auth/auth_bloc.dart.gcov.html delete mode 100644 coverage/lib/auth/auth_event.dart.func-sort-c.html delete mode 100644 coverage/lib/auth/auth_event.dart.func.html delete mode 100644 coverage/lib/auth/auth_event.dart.gcov.html delete mode 100644 coverage/lib/auth/auth_state.dart.func-sort-c.html delete mode 100644 coverage/lib/auth/auth_state.dart.func.html delete mode 100644 coverage/lib/auth/auth_state.dart.gcov.html delete mode 100644 coverage/lib/auth/index-sort-f.html delete mode 100644 coverage/lib/auth/index-sort-l.html delete mode 100644 coverage/lib/auth/index.html delete mode 100644 coverage/lib/failure.dart.func-sort-c.html delete mode 100644 coverage/lib/failure.dart.func.html delete mode 100644 coverage/lib/failure.dart.gcov.html delete mode 100644 coverage/lib/index-sort-f.html delete mode 100644 coverage/lib/index-sort-l.html delete mode 100644 coverage/lib/index.html delete mode 100644 coverage/lib/remote/api_manager.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/api_manager.dart.func.html delete mode 100644 coverage/lib/remote/api_manager.dart.gcov.html delete mode 100644 coverage/lib/remote/auth_interceptor.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/auth_interceptor.dart.func.html delete mode 100644 coverage/lib/remote/auth_interceptor.dart.gcov.html delete mode 100644 coverage/lib/remote/index-sort-f.html delete mode 100644 coverage/lib/remote/index-sort-l.html delete mode 100644 coverage/lib/remote/index.html delete mode 100644 coverage/lib/remote/models/index-sort-f.html delete mode 100644 coverage/lib/remote/models/index-sort-l.html delete mode 100644 coverage/lib/remote/models/index.html delete mode 100644 coverage/lib/remote/models/user.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/models/user.dart.func.html delete mode 100644 coverage/lib/remote/models/user.dart.gcov.html delete mode 100644 coverage/lib/remote/repositories/auth_repository.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/repositories/auth_repository.dart.func.html delete mode 100644 coverage/lib/remote/repositories/auth_repository.dart.gcov.html delete mode 100644 coverage/lib/remote/repositories/index-sort-f.html delete mode 100644 coverage/lib/remote/repositories/index-sort-l.html delete mode 100644 coverage/lib/remote/repositories/index.html delete mode 100644 coverage/lib/remote/requests/change_password.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/requests/change_password.dart.func.html delete mode 100644 coverage/lib/remote/requests/change_password.dart.gcov.html delete mode 100644 coverage/lib/remote/requests/index-sort-f.html delete mode 100644 coverage/lib/remote/requests/index-sort-l.html delete mode 100644 coverage/lib/remote/requests/index.html delete mode 100644 coverage/lib/remote/requests/login.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/requests/login.dart.func.html delete mode 100644 coverage/lib/remote/requests/login.dart.gcov.html delete mode 100644 coverage/lib/remote/requests/register.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/requests/register.dart.func.html delete mode 100644 coverage/lib/remote/requests/register.dart.gcov.html delete mode 100644 coverage/lib/remote/requests/relation_requests.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/requests/relation_requests.dart.func.html delete mode 100644 coverage/lib/remote/requests/relation_requests.dart.gcov.html delete mode 100644 coverage/lib/remote/requests/task_request.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/requests/task_request.dart.func.html delete mode 100644 coverage/lib/remote/requests/task_request.dart.gcov.html delete mode 100644 coverage/lib/remote/responses/auth_token.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/responses/auth_token.dart.func.html delete mode 100644 coverage/lib/remote/responses/auth_token.dart.gcov.html delete mode 100644 coverage/lib/remote/responses/index-sort-f.html delete mode 100644 coverage/lib/remote/responses/index-sort-l.html delete mode 100644 coverage/lib/remote/responses/index.html delete mode 100644 coverage/lib/remote/services/auth_service.chopper.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/services/auth_service.chopper.dart.func.html delete mode 100644 coverage/lib/remote/services/auth_service.chopper.dart.gcov.html delete mode 100644 coverage/lib/remote/services/auth_service.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/services/auth_service.dart.func.html delete mode 100644 coverage/lib/remote/services/auth_service.dart.gcov.html delete mode 100644 coverage/lib/remote/services/index-sort-f.html delete mode 100644 coverage/lib/remote/services/index-sort-l.html delete mode 100644 coverage/lib/remote/services/index.html delete mode 100644 coverage/lib/remote/services/relation_service.chopper.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/services/relation_service.chopper.dart.func.html delete mode 100644 coverage/lib/remote/services/relation_service.chopper.dart.gcov.html delete mode 100644 coverage/lib/remote/services/relation_service.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/services/relation_service.dart.func.html delete mode 100644 coverage/lib/remote/services/relation_service.dart.gcov.html delete mode 100644 coverage/lib/remote/services/task_service.chopper.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/services/task_service.chopper.dart.func.html delete mode 100644 coverage/lib/remote/services/task_service.chopper.dart.gcov.html delete mode 100644 coverage/lib/remote/services/task_service.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/services/task_service.dart.func.html delete mode 100644 coverage/lib/remote/services/task_service.dart.gcov.html delete mode 100644 coverage/lib/remote/services/user_service.chopper.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/services/user_service.chopper.dart.func.html delete mode 100644 coverage/lib/remote/services/user_service.chopper.dart.gcov.html delete mode 100644 coverage/lib/remote/services/user_service.dart.func-sort-c.html delete mode 100644 coverage/lib/remote/services/user_service.dart.func.html delete mode 100644 coverage/lib/remote/services/user_service.dart.gcov.html delete mode 100644 coverage/lib/screens/login/bloc/index-sort-f.html delete mode 100644 coverage/lib/screens/login/bloc/index-sort-l.html delete mode 100644 coverage/lib/screens/login/bloc/index.html delete mode 100644 coverage/lib/screens/login/bloc/login_bloc.dart.func-sort-c.html delete mode 100644 coverage/lib/screens/login/bloc/login_bloc.dart.func.html delete mode 100644 coverage/lib/screens/login/bloc/login_bloc.dart.gcov.html delete mode 100644 coverage/lib/screens/login/bloc/login_event.dart.func-sort-c.html delete mode 100644 coverage/lib/screens/login/bloc/login_event.dart.func.html delete mode 100644 coverage/lib/screens/login/bloc/login_event.dart.gcov.html delete mode 100644 coverage/lib/screens/login/bloc/login_state.dart.func-sort-c.html delete mode 100644 coverage/lib/screens/login/bloc/login_state.dart.func.html delete mode 100644 coverage/lib/screens/login/bloc/login_state.dart.gcov.html delete mode 100644 coverage/ruby.png delete mode 100644 coverage/snow.png delete mode 100644 coverage/updown.png diff --git a/.gitignore b/.gitignore index b4a256a..88264d9 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,6 @@ # Web related lib/generated_plugin_registrant.dart - +coverage/ # Exceptions to above rules. !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages diff --git a/coverage/amber.png b/coverage/amber.png deleted file mode 100644 index 2cab170d8359081983a4e343848dfe06bc490f12..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga>?NMQuI!iC1^G2tW}LqE04T&+ z;1OBOz`!j8!i<;h*8KqrvZOouIx;Y9?C1WI$O`1M1^9%x{(levWG?NMQuI!iC1^Jb!lvI6;R0X`wF(yt=9xVZRt1vCRixIA4P dLn>}1Cji+@42)0J?}79&c)I$ztaD0e0sy@GAL0N2 diff --git a/coverage/gcov.css b/coverage/gcov.css deleted file mode 100644 index bfd0a83..0000000 --- a/coverage/gcov.css +++ /dev/null @@ -1,519 +0,0 @@ -/* All views: initial background and text color */ -body -{ - color: #000000; - background-color: #FFFFFF; -} - -/* All views: standard link format*/ -a:link -{ - color: #284FA8; - text-decoration: underline; -} - -/* All views: standard link - visited format */ -a:visited -{ - color: #00CB40; - text-decoration: underline; -} - -/* All views: standard link - activated format */ -a:active -{ - color: #FF0040; - text-decoration: underline; -} - -/* All views: main title format */ -td.title -{ - text-align: center; - padding-bottom: 10px; - font-family: sans-serif; - font-size: 20pt; - font-style: italic; - font-weight: bold; -} - -/* All views: header item format */ -td.headerItem -{ - text-align: right; - padding-right: 6px; - font-family: sans-serif; - font-weight: bold; - vertical-align: top; - white-space: nowrap; -} - -/* All views: header item value format */ -td.headerValue -{ - text-align: left; - color: #284FA8; - font-family: sans-serif; - font-weight: bold; - white-space: nowrap; -} - -/* All views: header item coverage table heading */ -td.headerCovTableHead -{ - text-align: center; - padding-right: 6px; - padding-left: 6px; - padding-bottom: 0px; - font-family: sans-serif; - font-size: 80%; - white-space: nowrap; -} - -/* All views: header item coverage table entry */ -td.headerCovTableEntry -{ - text-align: right; - color: #284FA8; - font-family: sans-serif; - font-weight: bold; - white-space: nowrap; - padding-left: 12px; - padding-right: 4px; - background-color: #DAE7FE; -} - -/* All views: header item coverage table entry for high coverage rate */ -td.headerCovTableEntryHi -{ - text-align: right; - color: #000000; - font-family: sans-serif; - font-weight: bold; - white-space: nowrap; - padding-left: 12px; - padding-right: 4px; - background-color: #A7FC9D; -} - -/* All views: header item coverage table entry for medium coverage rate */ -td.headerCovTableEntryMed -{ - text-align: right; - color: #000000; - font-family: sans-serif; - font-weight: bold; - white-space: nowrap; - padding-left: 12px; - padding-right: 4px; - background-color: #FFEA20; -} - -/* All views: header item coverage table entry for ow coverage rate */ -td.headerCovTableEntryLo -{ - text-align: right; - color: #000000; - font-family: sans-serif; - font-weight: bold; - white-space: nowrap; - padding-left: 12px; - padding-right: 4px; - background-color: #FF0000; -} - -/* All views: header legend value for legend entry */ -td.headerValueLeg -{ - text-align: left; - color: #000000; - font-family: sans-serif; - font-size: 80%; - white-space: nowrap; - padding-top: 4px; -} - -/* All views: color of horizontal ruler */ -td.ruler -{ - background-color: #6688D4; -} - -/* All views: version string format */ -td.versionInfo -{ - text-align: center; - padding-top: 2px; - font-family: sans-serif; - font-style: italic; -} - -/* Directory view/File view (all)/Test case descriptions: - table headline format */ -td.tableHead -{ - text-align: center; - color: #FFFFFF; - background-color: #6688D4; - font-family: sans-serif; - font-size: 120%; - font-weight: bold; - white-space: nowrap; - padding-left: 4px; - padding-right: 4px; -} - -span.tableHeadSort -{ - padding-right: 4px; -} - -/* Directory view/File view (all): filename entry format */ -td.coverFile -{ - text-align: left; - padding-left: 10px; - padding-right: 20px; - color: #284FA8; - background-color: #DAE7FE; - font-family: monospace; -} - -/* Directory view/File view (all): bar-graph entry format*/ -td.coverBar -{ - padding-left: 10px; - padding-right: 10px; - background-color: #DAE7FE; -} - -/* Directory view/File view (all): bar-graph outline color */ -td.coverBarOutline -{ - background-color: #000000; -} - -/* Directory view/File view (all): percentage entry for files with - high coverage rate */ -td.coverPerHi -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #A7FC9D; - font-weight: bold; - font-family: sans-serif; -} - -/* Directory view/File view (all): line count entry for files with - high coverage rate */ -td.coverNumHi -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #A7FC9D; - white-space: nowrap; - font-family: sans-serif; -} - -/* Directory view/File view (all): percentage entry for files with - medium coverage rate */ -td.coverPerMed -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #FFEA20; - font-weight: bold; - font-family: sans-serif; -} - -/* Directory view/File view (all): line count entry for files with - medium coverage rate */ -td.coverNumMed -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #FFEA20; - white-space: nowrap; - font-family: sans-serif; -} - -/* Directory view/File view (all): percentage entry for files with - low coverage rate */ -td.coverPerLo -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #FF0000; - font-weight: bold; - font-family: sans-serif; -} - -/* Directory view/File view (all): line count entry for files with - low coverage rate */ -td.coverNumLo -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #FF0000; - white-space: nowrap; - font-family: sans-serif; -} - -/* File view (all): "show/hide details" link format */ -a.detail:link -{ - color: #B8D0FF; - font-size:80%; -} - -/* File view (all): "show/hide details" link - visited format */ -a.detail:visited -{ - color: #B8D0FF; - font-size:80%; -} - -/* File view (all): "show/hide details" link - activated format */ -a.detail:active -{ - color: #FFFFFF; - font-size:80%; -} - -/* File view (detail): test name entry */ -td.testName -{ - text-align: right; - padding-right: 10px; - background-color: #DAE7FE; - font-family: sans-serif; -} - -/* File view (detail): test percentage entry */ -td.testPer -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #DAE7FE; - font-family: sans-serif; -} - -/* File view (detail): test lines count entry */ -td.testNum -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #DAE7FE; - font-family: sans-serif; -} - -/* Test case descriptions: test name format*/ -dt -{ - font-family: sans-serif; - font-weight: bold; -} - -/* Test case descriptions: description table body */ -td.testDescription -{ - padding-top: 10px; - padding-left: 30px; - padding-bottom: 10px; - padding-right: 30px; - background-color: #DAE7FE; -} - -/* Source code view: function entry */ -td.coverFn -{ - text-align: left; - padding-left: 10px; - padding-right: 20px; - color: #284FA8; - background-color: #DAE7FE; - font-family: monospace; -} - -/* Source code view: function entry zero count*/ -td.coverFnLo -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #FF0000; - font-weight: bold; - font-family: sans-serif; -} - -/* Source code view: function entry nonzero count*/ -td.coverFnHi -{ - text-align: right; - padding-left: 10px; - padding-right: 10px; - background-color: #DAE7FE; - font-weight: bold; - font-family: sans-serif; -} - -/* Source code view: source code format */ -pre.source -{ - font-family: monospace; - white-space: pre; - margin-top: 2px; -} - -/* Source code view: line number format */ -span.lineNum -{ - background-color: #EFE383; -} - -/* Source code view: format for lines which were executed */ -td.lineCov, -span.lineCov -{ - background-color: #CAD7FE; -} - -/* Source code view: format for Cov legend */ -span.coverLegendCov -{ - padding-left: 10px; - padding-right: 10px; - padding-bottom: 2px; - background-color: #CAD7FE; -} - -/* Source code view: format for lines which were not executed */ -td.lineNoCov, -span.lineNoCov -{ - background-color: #FF6230; -} - -/* Source code view: format for NoCov legend */ -span.coverLegendNoCov -{ - padding-left: 10px; - padding-right: 10px; - padding-bottom: 2px; - background-color: #FF6230; -} - -/* Source code view (function table): standard link - visited format */ -td.lineNoCov > a:visited, -td.lineCov > a:visited -{ - color: black; - text-decoration: underline; -} - -/* Source code view: format for lines which were executed only in a - previous version */ -span.lineDiffCov -{ - background-color: #B5F7AF; -} - -/* Source code view: format for branches which were executed - * and taken */ -span.branchCov -{ - background-color: #CAD7FE; -} - -/* Source code view: format for branches which were executed - * but not taken */ -span.branchNoCov -{ - background-color: #FF6230; -} - -/* Source code view: format for branches which were not executed */ -span.branchNoExec -{ - background-color: #FF6230; -} - -/* Source code view: format for the source code heading line */ -pre.sourceHeading -{ - white-space: pre; - font-family: monospace; - font-weight: bold; - margin: 0px; -} - -/* All views: header legend value for low rate */ -td.headerValueLegL -{ - font-family: sans-serif; - text-align: center; - white-space: nowrap; - padding-left: 4px; - padding-right: 2px; - background-color: #FF0000; - font-size: 80%; -} - -/* All views: header legend value for med rate */ -td.headerValueLegM -{ - font-family: sans-serif; - text-align: center; - white-space: nowrap; - padding-left: 2px; - padding-right: 2px; - background-color: #FFEA20; - font-size: 80%; -} - -/* All views: header legend value for hi rate */ -td.headerValueLegH -{ - font-family: sans-serif; - text-align: center; - white-space: nowrap; - padding-left: 2px; - padding-right: 4px; - background-color: #A7FC9D; - font-size: 80%; -} - -/* All views except source code view: legend format for low coverage */ -span.coverLegendCovLo -{ - padding-left: 10px; - padding-right: 10px; - padding-top: 2px; - background-color: #FF0000; -} - -/* All views except source code view: legend format for med coverage */ -span.coverLegendCovMed -{ - padding-left: 10px; - padding-right: 10px; - padding-top: 2px; - background-color: #FFEA20; -} - -/* All views except source code view: legend format for hi coverage */ -span.coverLegendCovHi -{ - padding-left: 10px; - padding-right: 10px; - padding-top: 2px; - background-color: #A7FC9D; -} diff --git a/coverage/glass.png b/coverage/glass.png deleted file mode 100644 index e1abc00680a3093c49fdb775ae6bdb6764c95af2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 167 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)gaEa{HEjtmSN`?>!lvI6;R0X`wF z|Ns97GD8ntt^-nxB|(0{3=Yq3q=7g|-tI089jvk*Kn`btM`SSr1Gf+eGhVt|_XjA* zUgGKN%6^Gmn4d%Ph(nkFP>9RZ#WAE}PI3Z}&BVayv3^M*kj3EX>gTe~DWM4f=_Dpv diff --git a/coverage/index-sort-f.html b/coverage/index-sort-f.html deleted file mode 100644 index ebd369e..0000000 --- a/coverage/index-sort-f.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - LCOV - lcov.info - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top levelHitTotalCoverage
Test:lcov.infoLines:5128318.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Directory Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
lib/remote/requests -
2.1%2.1%
-
2.1 %1 / 47-0 / 0
lib/remote/services -
0.0%
-
0.0 %0 / 110-0 / 0
lib/remote/models -
0.0%
-
0.0 %0 / 34-0 / 0
lib/auth -
96.6%96.6%
-
96.6 %28 / 29-0 / 0
lib -
0.0%
-
0.0 %0 / 4-0 / 0
lib/remote/responses -
33.3%33.3%
-
33.3 %1 / 3-0 / 0
lib/screens/login/bloc -
100.0%
-
100.0 %21 / 21-0 / 0
lib/remote/repositories -
0.0%
-
0.0 %0 / 17-0 / 0
lib/remote -
0.0%
-
0.0 %0 / 18-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/index-sort-l.html b/coverage/index-sort-l.html deleted file mode 100644 index 204f0aa..0000000 --- a/coverage/index-sort-l.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - LCOV - lcov.info - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top levelHitTotalCoverage
Test:lcov.infoLines:5128318.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Directory Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
lib -
0.0%
-
0.0 %0 / 4-0 / 0
lib/remote/repositories -
0.0%
-
0.0 %0 / 17-0 / 0
lib/remote -
0.0%
-
0.0 %0 / 18-0 / 0
lib/remote/models -
0.0%
-
0.0 %0 / 34-0 / 0
lib/remote/services -
0.0%
-
0.0 %0 / 110-0 / 0
lib/remote/requests -
2.1%2.1%
-
2.1 %1 / 47-0 / 0
lib/remote/responses -
33.3%33.3%
-
33.3 %1 / 3-0 / 0
lib/auth -
96.6%96.6%
-
96.6 %28 / 29-0 / 0
lib/screens/login/bloc -
100.0%
-
100.0 %21 / 21-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/index.html b/coverage/index.html deleted file mode 100644 index 8fb7106..0000000 --- a/coverage/index.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - LCOV - lcov.info - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top levelHitTotalCoverage
Test:lcov.infoLines:5128318.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Directory Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
lib -
0.0%
-
0.0 %0 / 4-0 / 0
lib/auth -
96.6%96.6%
-
96.6 %28 / 29-0 / 0
lib/remote -
0.0%
-
0.0 %0 / 18-0 / 0
lib/remote/models -
0.0%
-
0.0 %0 / 34-0 / 0
lib/remote/repositories -
0.0%
-
0.0 %0 / 17-0 / 0
lib/remote/requests -
2.1%2.1%
-
2.1 %1 / 47-0 / 0
lib/remote/responses -
33.3%33.3%
-
33.3 %1 / 3-0 / 0
lib/remote/services -
0.0%
-
0.0 %0 / 110-0 / 0
lib/screens/login/bloc -
100.0%
-
100.0 %21 / 21-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lcov.info b/coverage/lcov.info deleted file mode 100644 index 1dcf6ae..0000000 --- a/coverage/lcov.info +++ /dev/null @@ -1,383 +0,0 @@ -SF:lib/remote/repositories/auth_repository.dart -DA:15,0 -DA:19,0 -DA:21,0 -DA:22,0 -DA:23,0 -DA:26,0 -DA:27,0 -DA:30,0 -DA:31,0 -DA:32,0 -DA:35,0 -DA:36,0 -DA:37,0 -DA:40,0 -DA:41,0 -DA:44,0 -DA:46,0 -LF:17 -LH:0 -end_of_record -SF:lib/auth/auth_bloc.dart -DA:12,1 -DA:14,1 -DA:15,1 -DA:18,1 -DA:19,1 -DA:20,3 -DA:23,0 -DA:25,2 -DA:29,1 -DA:30,2 -DA:31,4 -DA:32,2 -DA:35,1 -DA:36,2 -DA:37,3 -DA:38,2 -LF:16 -LH:15 -end_of_record -SF:lib/auth/auth_event.dart -DA:4,3 -DA:6,1 -DA:7,1 -DA:15,3 -DA:17,2 -DA:18,4 -DA:20,1 -DA:21,2 -LF:8 -LH:8 -end_of_record -SF:lib/auth/auth_state.dart -DA:4,1 -DA:6,1 -DA:20,1 -DA:22,1 -DA:23,2 -LF:5 -LH:5 -end_of_record -SF:lib/failure.dart -DA:7,0 -DA:9,0 -DA:11,0 -DA:12,0 -LF:4 -LH:0 -end_of_record -SF:lib/remote/api_manager.dart -DA:13,0 -DA:20,0 -DA:24,0 -DA:26,0 -DA:28,0 -DA:29,0 -DA:30,0 -DA:32,0 -DA:33,0 -DA:34,0 -DA:35,0 -DA:36,0 -DA:37,0 -DA:38,0 -LF:14 -LH:0 -end_of_record -SF:lib/remote/services/auth_service.dart -DA:16,0 -DA:17,0 -DA:19,0 -DA:20,0 -DA:22,0 -DA:23,0 -DA:24,0 -DA:27,0 -LF:8 -LH:0 -end_of_record -SF:lib/remote/services/auth_service.chopper.dart -DA:11,0 -DA:13,0 -DA:19,0 -DA:23,0 -DA:24,0 -DA:27,0 -DA:31,0 -DA:32,0 -LF:8 -LH:0 -end_of_record -SF:lib/remote/services/relation_service.chopper.dart -DA:11,0 -DA:13,0 -DA:19,0 -DA:22,0 -DA:23,0 -DA:26,0 -DA:28,0 -DA:29,0 -DA:30,0 -DA:33,0 -DA:35,0 -DA:36,0 -DA:37,0 -DA:40,0 -DA:42,0 -DA:43,0 -DA:44,0 -DA:47,0 -DA:49,0 -DA:50,0 -DA:51,0 -DA:54,0 -DA:59,0 -DA:60,0 -DA:63,0 -DA:66,0 -DA:67,0 -LF:27 -LH:0 -end_of_record -SF:lib/remote/services/relation_service.dart -DA:39,0 -DA:40,0 -DA:42,0 -DA:43,0 -DA:45,0 -DA:46,0 -DA:47,0 -DA:48,0 -DA:51,0 -LF:9 -LH:0 -end_of_record -SF:lib/remote/services/task_service.dart -DA:28,0 -DA:29,0 -DA:31,0 -DA:32,0 -DA:34,0 -DA:35,0 -DA:36,0 -DA:37,0 -DA:40,0 -LF:9 -LH:0 -end_of_record -SF:lib/remote/services/task_service.chopper.dart -DA:11,0 -DA:13,0 -DA:19,0 -DA:22,0 -DA:23,0 -DA:24,0 -DA:27,0 -DA:30,0 -DA:32,0 -DA:33,0 -DA:36,0 -DA:39,0 -DA:40,0 -DA:41,0 -DA:44,0 -DA:46,0 -DA:47,0 -DA:48,0 -LF:18 -LH:0 -end_of_record -SF:lib/remote/services/user_service.dart -DA:38,0 -DA:39,0 -DA:41,0 -DA:42,0 -DA:44,0 -DA:45,0 -DA:46,0 -DA:47,0 -DA:50,0 -LF:9 -LH:0 -end_of_record -SF:lib/remote/services/user_service.chopper.dart -DA:11,0 -DA:13,0 -DA:19,0 -DA:22,0 -DA:23,0 -DA:26,0 -DA:29,0 -DA:30,0 -DA:31,0 -DA:34,0 -DA:37,0 -DA:38,0 -DA:41,0 -DA:43,0 -DA:44,0 -DA:45,0 -DA:48,0 -DA:52,0 -DA:53,0 -DA:56,0 -DA:60,0 -DA:61,0 -LF:22 -LH:0 -end_of_record -SF:lib/remote/auth_interceptor.dart -DA:9,0 -DA:10,0 -DA:12,0 -DA:14,0 -LF:4 -LH:0 -end_of_record -SF:lib/remote/models/user.dart -DA:17,0 -DA:33,0 -DA:34,0 -DA:36,0 -DA:38,0 -DA:44,0 -DA:45,0 -DA:46,0 -DA:47,0 -DA:48,0 -DA:49,0 -DA:50,0 -DA:51,0 -DA:52,0 -DA:53,0 -DA:54,0 -DA:55,0 -DA:56,0 -DA:57,0 -DA:60,0 -DA:61,0 -DA:62,0 -DA:63,0 -DA:64,0 -DA:65,0 -DA:66,0 -DA:67,0 -DA:68,0 -DA:69,0 -DA:70,0 -DA:71,0 -DA:72,0 -DA:73,0 -DA:74,0 -LF:34 -LH:0 -end_of_record -SF:lib/remote/requests/login.dart -DA:8,2 -DA:9,0 -DA:10,0 -DA:12,0 -LF:4 -LH:1 -end_of_record -SF:lib/remote/requests/register.dart -DA:20,0 -DA:28,0 -DA:29,0 -DA:30,0 -DA:31,0 -DA:32,0 -DA:33,0 -DA:34,0 -DA:36,0 -DA:37,0 -DA:38,0 -DA:39,0 -DA:40,0 -DA:41,0 -DA:42,0 -DA:43,0 -LF:16 -LH:0 -end_of_record -SF:lib/remote/responses/auth_token.dart -DA:8,1 -DA:10,0 -DA:11,0 -LF:3 -LH:1 -end_of_record -SF:lib/remote/requests/change_password.dart -DA:7,0 -DA:9,0 -DA:10,0 -DA:11,0 -DA:12,0 -DA:16,0 -DA:17,0 -DA:18,0 -DA:19,0 -LF:9 -LH:0 -end_of_record -SF:lib/remote/requests/relation_requests.dart -DA:12,0 -DA:14,0 -DA:15,0 -DA:16,0 -DA:17,0 -DA:18,0 -DA:21,0 -DA:22,0 -DA:23,0 -DA:24,0 -DA:25,0 -DA:26,0 -LF:12 -LH:0 -end_of_record -SF:lib/remote/requests/task_request.dart -DA:6,0 -DA:8,0 -DA:9,0 -DA:11,0 -DA:12,0 -DA:13,0 -LF:6 -LH:0 -end_of_record -SF:lib/screens/login/bloc/login_bloc.dart -DA:12,1 -DA:14,1 -DA:15,1 -DA:18,1 -DA:19,1 -DA:20,2 -DA:22,4 -DA:23,2 -DA:24,4 -DA:26,3 -LF:10 -LH:10 -end_of_record -SF:lib/screens/login/bloc/login_event.dart -DA:5,2 -DA:11,2 -DA:13,1 -DA:14,2 -LF:4 -LH:4 -end_of_record -SF:lib/screens/login/bloc/login_state.dart -DA:4,2 -DA:6,1 -DA:19,2 -DA:21,2 -DA:22,4 -DA:23,1 -DA:24,2 -LF:7 -LH:7 -end_of_record diff --git a/coverage/lib/auth/auth_bloc.dart.func-sort-c.html b/coverage/lib/auth/auth_bloc.dart.func-sort-c.html deleted file mode 100644 index 7728e6b..0000000 --- a/coverage/lib/auth/auth_bloc.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/auth/auth_bloc.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/auth - auth_bloc.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:151693.8 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/auth/auth_bloc.dart.func.html b/coverage/lib/auth/auth_bloc.dart.func.html deleted file mode 100644 index ab686a3..0000000 --- a/coverage/lib/auth/auth_bloc.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/auth/auth_bloc.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/auth - auth_bloc.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:151693.8 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/auth/auth_bloc.dart.gcov.html b/coverage/lib/auth/auth_bloc.dart.gcov.html deleted file mode 100644 index 3126c8f..0000000 --- a/coverage/lib/auth/auth_bloc.dart.gcov.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/auth/auth_bloc.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/auth - auth_bloc.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:151693.8 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'dart:async';
-       2             : 
-       3             : import 'package:bloc/bloc.dart';
-       4             : import 'package:mentorship_client/auth/bloc.dart';
-       5             : import 'package:mentorship_client/remote/repositories/auth_repository.dart';
-       6             : 
-       7             : import 'bloc.dart';
-       8             : 
-       9             : class AuthBloc extends Bloc<AuthEvent, AuthState> {
-      10             :   final AuthRepository userRepository;
-      11             : 
-      12           1 :   AuthBloc(this.userRepository);
-      13             : 
-      14           1 :   @override
-      15           1 :   AuthState get initialState => AuthUninitialized();
-      16             : 
-      17             :   @override
-      18           1 :   Stream<AuthState> mapEventToState(AuthEvent event) async* {
-      19           1 :     if (event is AppStarted) {
-      20           3 :       final String token = await userRepository.getToken();
-      21             : 
-      22             :       if (token != null) {
-      23           0 :         yield AuthAuthenticated();
-      24             :       } else {
-      25           2 :         yield AuthUnauthenticated();
-      26             :       }
-      27             :     }
-      28             : 
-      29           1 :     if (event is JustLoggedIn) {
-      30           2 :       yield AuthInProgress();
-      31           4 :       await userRepository.persistToken(event.token);
-      32           2 :       yield AuthAuthenticated();
-      33             :     }
-      34             : 
-      35           1 :     if (event is JustLoggedOut) {
-      36           2 :       yield AuthInProgress();
-      37           3 :       await userRepository.deleteToken();
-      38           2 :       yield AuthUnauthenticated(justLoggedOut: true);
-      39             :     }
-      40             :   }
-      41             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/auth/auth_event.dart.func-sort-c.html b/coverage/lib/auth/auth_event.dart.func-sort-c.html deleted file mode 100644 index 4f451c2..0000000 --- a/coverage/lib/auth/auth_event.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/auth/auth_event.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/auth - auth_event.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:88100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/auth/auth_event.dart.func.html b/coverage/lib/auth/auth_event.dart.func.html deleted file mode 100644 index ab37119..0000000 --- a/coverage/lib/auth/auth_event.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/auth/auth_event.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/auth - auth_event.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:88100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/auth/auth_event.dart.gcov.html b/coverage/lib/auth/auth_event.dart.gcov.html deleted file mode 100644 index 05143a4..0000000 --- a/coverage/lib/auth/auth_event.dart.gcov.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/auth/auth_event.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/auth - auth_event.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:88100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'package:equatable/equatable.dart';
-       2             : 
-       3             : abstract class AuthEvent extends Equatable {
-       4           3 :   const AuthEvent();
-       5             : 
-       6           1 :   @override
-       7           1 :   List<Object> get props => [];
-       8             : }
-       9             : 
-      10             : class AppStarted extends AuthEvent {}
-      11             : 
-      12             : class JustLoggedIn extends AuthEvent {
-      13             :   final String token;
-      14             : 
-      15           3 :   const JustLoggedIn(this.token);
-      16             : 
-      17           2 :   @override
-      18           4 :   List<Object> get props => [token];
-      19             : 
-      20           1 :   @override
-      21           2 :   String toString() => 'LoggedIn { token: $token }';
-      22             : }
-      23             : 
-      24             : class JustLoggedOut extends AuthEvent {}
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/auth/auth_state.dart.func-sort-c.html b/coverage/lib/auth/auth_state.dart.func-sort-c.html deleted file mode 100644 index 9488928..0000000 --- a/coverage/lib/auth/auth_state.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/auth/auth_state.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/auth - auth_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:55100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/auth/auth_state.dart.func.html b/coverage/lib/auth/auth_state.dart.func.html deleted file mode 100644 index fe6ae5a..0000000 --- a/coverage/lib/auth/auth_state.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/auth/auth_state.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/auth - auth_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:55100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/auth/auth_state.dart.gcov.html b/coverage/lib/auth/auth_state.dart.gcov.html deleted file mode 100644 index 685b429..0000000 --- a/coverage/lib/auth/auth_state.dart.gcov.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/auth/auth_state.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/auth - auth_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:55100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'package:equatable/equatable.dart';
-       2             : 
-       3             : abstract class AuthState extends Equatable {
-       4           1 :   const AuthState();
-       5             : 
-       6           1 :   @override
-       7             :   List<Object> get props => null;
-       8             : }
-       9             : 
-      10             : class AuthUninitialized extends AuthState {}
-      11             : 
-      12             : class AuthAuthenticated extends AuthState {}
-      13             : 
-      14             : /// Represents app state when the user is not signed in.
-      15             : /// [justLoggedOut] signifies that a logout happened
-      16             : /// very recently.
-      17             : class AuthUnauthenticated extends AuthState {
-      18             :   final bool justLoggedOut;
-      19             : 
-      20           1 :   AuthUnauthenticated({this.justLoggedOut = false});
-      21             : 
-      22           1 :   @override
-      23           2 :   List<Object> get props => [justLoggedOut];
-      24             : }
-      25             : 
-      26             : class AuthInProgress extends AuthState {}
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/auth/index-sort-f.html b/coverage/lib/auth/index-sort-f.html deleted file mode 100644 index a244f52..0000000 --- a/coverage/lib/auth/index-sort-f.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/auth - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/authHitTotalCoverage
Test:lcov.infoLines:282996.6 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_bloc.dart -
93.8%93.8%
-
93.8 %15 / 16-0 / 0
auth_event.dart -
100.0%
-
100.0 %8 / 8-0 / 0
auth_state.dart -
100.0%
-
100.0 %5 / 5-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/auth/index-sort-l.html b/coverage/lib/auth/index-sort-l.html deleted file mode 100644 index bba19ec..0000000 --- a/coverage/lib/auth/index-sort-l.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/auth - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/authHitTotalCoverage
Test:lcov.infoLines:282996.6 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_bloc.dart -
93.8%93.8%
-
93.8 %15 / 16-0 / 0
auth_state.dart -
100.0%
-
100.0 %5 / 5-0 / 0
auth_event.dart -
100.0%
-
100.0 %8 / 8-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/auth/index.html b/coverage/lib/auth/index.html deleted file mode 100644 index 7121d96..0000000 --- a/coverage/lib/auth/index.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/auth - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/authHitTotalCoverage
Test:lcov.infoLines:282996.6 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_bloc.dart -
93.8%93.8%
-
93.8 %15 / 16-0 / 0
auth_event.dart -
100.0%
-
100.0 %8 / 8-0 / 0
auth_state.dart -
100.0%
-
100.0 %5 / 5-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/failure.dart.func-sort-c.html b/coverage/lib/failure.dart.func-sort-c.html deleted file mode 100644 index ac19f4b..0000000 --- a/coverage/lib/failure.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/failure.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib - failure.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/failure.dart.func.html b/coverage/lib/failure.dart.func.html deleted file mode 100644 index 6f65e41..0000000 --- a/coverage/lib/failure.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/failure.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib - failure.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/failure.dart.gcov.html b/coverage/lib/failure.dart.gcov.html deleted file mode 100644 index 6189bd5..0000000 --- a/coverage/lib/failure.dart.gcov.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/failure.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib - failure.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'dart:convert';
-       2             : 
-       3             : /// Represents some failure with a message.
-       4             : class Failure {
-       5             :   final String message;
-       6             : 
-       7           0 :   Failure(this.message);
-       8             : 
-       9           0 :   Failure.fromJson(String jsonString) : message = jsonDecode(jsonString)["message"];
-      10             : 
-      11           0 :   @override
-      12           0 :   String toString() => "Failure: $message";
-      13             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/index-sort-f.html b/coverage/lib/index-sort-f.html deleted file mode 100644 index 2b0d49c..0000000 --- a/coverage/lib/index-sort-f.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - lib - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - libHitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
failure.dart -
0.0%
-
0.0 %0 / 4-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/index-sort-l.html b/coverage/lib/index-sort-l.html deleted file mode 100644 index c46f921..0000000 --- a/coverage/lib/index-sort-l.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - lib - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - libHitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
failure.dart -
0.0%
-
0.0 %0 / 4-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/index.html b/coverage/lib/index.html deleted file mode 100644 index 457ff9a..0000000 --- a/coverage/lib/index.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - lib - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - libHitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
failure.dart -
0.0%
-
0.0 %0 / 4-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/api_manager.dart.func-sort-c.html b/coverage/lib/remote/api_manager.dart.func-sort-c.html deleted file mode 100644 index e8548a4..0000000 --- a/coverage/lib/remote/api_manager.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/api_manager.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote - api_manager.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0140.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/api_manager.dart.func.html b/coverage/lib/remote/api_manager.dart.func.html deleted file mode 100644 index 88216f0..0000000 --- a/coverage/lib/remote/api_manager.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/api_manager.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote - api_manager.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0140.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/api_manager.dart.gcov.html b/coverage/lib/remote/api_manager.dart.gcov.html deleted file mode 100644 index f8b9ab1..0000000 --- a/coverage/lib/remote/api_manager.dart.gcov.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/api_manager.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote - api_manager.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0140.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'dart:io';
-       2             : 
-       3             : import 'package:logging/logging.dart';
-       4             : import 'package:mentorship_client/failure.dart';
-       5             : import 'package:mentorship_client/remote/services/auth_service.dart';
-       6             : import 'package:mentorship_client/remote/services/relation_service.dart';
-       7             : import 'package:mentorship_client/remote/services/task_service.dart';
-       8             : import 'package:mentorship_client/remote/services/user_service.dart';
-       9             : import 'package:mentorship_client/typedefs.dart';
-      10             : 
-      11             : /// Singleton class that gathers all services in one place.
-      12             : class ApiManager {
-      13           0 :   static final instance = ApiManager._internal();
-      14             : 
-      15             :   final AuthService authService = AuthService.create();
-      16             :   final UserService userService = UserService.create();
-      17             :   final RelationService relationService = RelationService.create();
-      18             :   final TaskService taskService = TaskService.create();
-      19             : 
-      20           0 :   ApiManager._internal();
-      21             : 
-      22             :   /// Convenience method to reduce boilerplate. Invokes API function
-      23             :   /// and catches all possible errors.
-      24           0 :   static Future<T> callSafely<T>(ApiFunction apiFunction) async {
-      25             :     try {
-      26           0 :       final response = await apiFunction();
-      27             : 
-      28           0 :       if (!response.isSuccessful) {
-      29           0 :         Logger.root.severe("Error: ${response.error}");
-      30           0 :         throw Failure.fromJson(response.error);
-      31             :       }
-      32           0 :       return response.body;
-      33           0 :     } on SocketException {
-      34           0 :       throw Failure("No internet connection");
-      35           0 :     } on HttpException {
-      36           0 :       throw Failure("HttpException");
-      37           0 :     } on Exception catch (e) {
-      38           0 :       throw Failure(e.toString());
-      39             :     }
-      40             :   }
-      41             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/auth_interceptor.dart.func-sort-c.html b/coverage/lib/remote/auth_interceptor.dart.func-sort-c.html deleted file mode 100644 index 1759ea9..0000000 --- a/coverage/lib/remote/auth_interceptor.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/auth_interceptor.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote - auth_interceptor.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/auth_interceptor.dart.func.html b/coverage/lib/remote/auth_interceptor.dart.func.html deleted file mode 100644 index 39817ea..0000000 --- a/coverage/lib/remote/auth_interceptor.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/auth_interceptor.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote - auth_interceptor.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/auth_interceptor.dart.gcov.html b/coverage/lib/remote/auth_interceptor.dart.gcov.html deleted file mode 100644 index 5e757f5..0000000 --- a/coverage/lib/remote/auth_interceptor.dart.gcov.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/auth_interceptor.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote - auth_interceptor.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:040.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'dart:async';
-       2             : 
-       3             : import 'package:chopper/chopper.dart';
-       4             : import 'package:mentorship_client/remote/repositories/auth_repository.dart';
-       5             : 
-       6             : /// Custom RequestInterceptor which adds current [User]s JWT token to every request
-       7             : class AuthInterceptor extends RequestInterceptor {
-       8             :   @override
-       9           0 :   FutureOr<Request> onRequest(Request request) async {
-      10           0 :     String token = await AuthRepository.instance.getToken();
-      11             : 
-      12           0 :     Map<String, String> headers = {"Authorization": token};
-      13             : 
-      14           0 :     Request authenticatedRequest = applyHeaders(request, headers);
-      15             : 
-      16             :     return authenticatedRequest;
-      17             :   }
-      18             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/index-sort-f.html b/coverage/lib/remote/index-sort-f.html deleted file mode 100644 index 187f92a..0000000 --- a/coverage/lib/remote/index-sort-f.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remoteHitTotalCoverage
Test:lcov.infoLines:0180.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_interceptor.dart -
0.0%
-
0.0 %0 / 4-0 / 0
api_manager.dart -
0.0%
-
0.0 %0 / 14-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/index-sort-l.html b/coverage/lib/remote/index-sort-l.html deleted file mode 100644 index 324871c..0000000 --- a/coverage/lib/remote/index-sort-l.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remoteHitTotalCoverage
Test:lcov.infoLines:0180.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_interceptor.dart -
0.0%
-
0.0 %0 / 4-0 / 0
api_manager.dart -
0.0%
-
0.0 %0 / 14-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/index.html b/coverage/lib/remote/index.html deleted file mode 100644 index 4ad3d37..0000000 --- a/coverage/lib/remote/index.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remoteHitTotalCoverage
Test:lcov.infoLines:0180.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
api_manager.dart -
0.0%
-
0.0 %0 / 14-0 / 0
auth_interceptor.dart -
0.0%
-
0.0 %0 / 4-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/models/index-sort-f.html b/coverage/lib/remote/models/index-sort-f.html deleted file mode 100644 index 4ddcad4..0000000 --- a/coverage/lib/remote/models/index-sort-f.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/models - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/modelsHitTotalCoverage
Test:lcov.infoLines:0340.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
user.dart -
0.0%
-
0.0 %0 / 34-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/models/index-sort-l.html b/coverage/lib/remote/models/index-sort-l.html deleted file mode 100644 index 4f9afca..0000000 --- a/coverage/lib/remote/models/index-sort-l.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/models - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/modelsHitTotalCoverage
Test:lcov.infoLines:0340.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
user.dart -
0.0%
-
0.0 %0 / 34-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/models/index.html b/coverage/lib/remote/models/index.html deleted file mode 100644 index 29c5dc5..0000000 --- a/coverage/lib/remote/models/index.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/models - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/modelsHitTotalCoverage
Test:lcov.infoLines:0340.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
user.dart -
0.0%
-
0.0 %0 / 34-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/models/user.dart.func-sort-c.html b/coverage/lib/remote/models/user.dart.func-sort-c.html deleted file mode 100644 index 3fb24f4..0000000 --- a/coverage/lib/remote/models/user.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/models/user.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/models - user.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0340.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/models/user.dart.func.html b/coverage/lib/remote/models/user.dart.func.html deleted file mode 100644 index 98fac7a..0000000 --- a/coverage/lib/remote/models/user.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/models/user.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/models - user.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0340.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/models/user.dart.gcov.html b/coverage/lib/remote/models/user.dart.gcov.html deleted file mode 100644 index b011907..0000000 --- a/coverage/lib/remote/models/user.dart.gcov.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/models/user.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/models - user.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0340.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : /// Represents all the information related to a user of the system
-       2             : class User {
-       3             :   int id;
-       4             :   String username;
-       5             :   String name;
-       6             :   String email;
-       7             :   String slackUsername;
-       8             :   String bio;
-       9             :   String location;
-      10             :   String occupation;
-      11             :   String organization;
-      12             :   String interests;
-      13             :   String skills;
-      14             :   bool needsMentoring;
-      15             :   bool availableToMentor;
-      16             : 
-      17           0 :   User(
-      18             :       {this.id,
-      19             :       this.username,
-      20             :       this.name,
-      21             :       this.email,
-      22             :       this.slackUsername,
-      23             :       this.bio,
-      24             :       this.location,
-      25             :       this.occupation,
-      26             :       this.organization,
-      27             :       this.interests,
-      28             :       this.skills,
-      29             :       this.needsMentoring,
-      30             :       this.availableToMentor});
-      31             : 
-      32             :   /// Returns info about user's availability to be a mentor and a mentee
-      33           0 :   String requestStatus() {
-      34           0 :     if (needsMentoring && availableToMentor) {
-      35             :       return "Available to mentor and to be a mentee.";
-      36           0 :     } else if (needsMentoring) {
-      37             :       return "Needs mentoring";
-      38           0 :     } else if (availableToMentor) {
-      39             :       return "Available to mentor";
-      40             :     } else
-      41             :       return "";
-      42             :   }
-      43             : 
-      44           0 :   factory User.fromJson(Map<String, dynamic> json) => User(
-      45           0 :         id: json['id'],
-      46           0 :         username: json['username'],
-      47           0 :         name: json['name'],
-      48           0 :         email: json['email'],
-      49           0 :         slackUsername: json['slack_username'],
-      50           0 :         bio: json['bio'],
-      51           0 :         location: json['location'],
-      52           0 :         occupation: json['occupation'],
-      53           0 :         organization: json['organization'],
-      54           0 :         interests: json['interests'],
-      55           0 :         skills: json['skills'],
-      56           0 :         needsMentoring: json['need_mentoring'],
-      57           0 :         availableToMentor: json['available_to_mentor'],
-      58             :       );
-      59             : 
-      60           0 :   Map<String, dynamic> toJson() {
-      61           0 :     final Map<String, dynamic> data = new Map<String, dynamic>();
-      62           0 :     data['id'] = this.id;
-      63           0 :     data['username'] = this.username;
-      64           0 :     data['name'] = this.name;
-      65           0 :     data['email'] = this.email;
-      66           0 :     data['slack_username'] = this.slackUsername;
-      67           0 :     data['bio'] = this.bio;
-      68           0 :     data['location'] = this.location;
-      69           0 :     data['occupation'] = this.occupation;
-      70           0 :     data['organization'] = this.organization;
-      71           0 :     data['interests'] = this.interests;
-      72           0 :     data['skills'] = this.skills;
-      73           0 :     data['need_mentoring'] = this.needsMentoring;
-      74           0 :     data['available_to_mentor'] = this.availableToMentor;
-      75             :     return data;
-      76             :   }
-      77             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/repositories/auth_repository.dart.func-sort-c.html b/coverage/lib/remote/repositories/auth_repository.dart.func-sort-c.html deleted file mode 100644 index c3901e2..0000000 --- a/coverage/lib/remote/repositories/auth_repository.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/repositories/auth_repository.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/repositories - auth_repository.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0170.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/repositories/auth_repository.dart.func.html b/coverage/lib/remote/repositories/auth_repository.dart.func.html deleted file mode 100644 index 5e3e308..0000000 --- a/coverage/lib/remote/repositories/auth_repository.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/repositories/auth_repository.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/repositories - auth_repository.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0170.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/repositories/auth_repository.dart.gcov.html b/coverage/lib/remote/repositories/auth_repository.dart.gcov.html deleted file mode 100644 index a88d056..0000000 --- a/coverage/lib/remote/repositories/auth_repository.dart.gcov.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/repositories/auth_repository.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/repositories - auth_repository.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0170.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'package:flutter_secure_storage/flutter_secure_storage.dart';
-       2             : import 'package:logging/logging.dart';
-       3             : import 'package:mentorship_client/remote/api_manager.dart';
-       4             : import 'package:mentorship_client/remote/requests/login.dart';
-       5             : import 'package:mentorship_client/remote/requests/register.dart';
-       6             : import 'package:mentorship_client/remote/responses/auth_token.dart';
-       7             : 
-       8             : /// Repository taking care of authentication. Its main task is to serve as an abstraction
-       9             : /// layer over [AuthService]. [AuthRepository] exposes following actions:
-      10             : /// - user login and logout
-      11             : /// - user registration
-      12             : /// - persisting JWT tokens
-      13             : /// - deleting JWT tokens
-      14             : class AuthRepository {
-      15           0 :   static final AuthRepository instance = AuthRepository._internal();
-      16             :   static const AUTH_TOKEN = "auth-token";
-      17             :   final _storage = FlutterSecureStorage();
-      18             : 
-      19           0 :   AuthRepository._internal();
-      20             : 
-      21           0 :   Future<AuthToken> login(Login login) async {
-      22           0 :     final body = await ApiManager.callSafely(() => ApiManager.instance.authService.login(login));
-      23           0 :     return AuthToken.fromJson(body);
-      24             :   }
-      25             : 
-      26           0 :   Future<void> register(Register register) async {
-      27           0 :     await ApiManager.callSafely(() => ApiManager.instance.authService.register(register));
-      28             :   }
-      29             : 
-      30           0 :   Future<void> deleteToken() async {
-      31           0 :     await _storage.delete(key: AUTH_TOKEN);
-      32           0 :     Logger.root.info("Deleted token.");
-      33             :   }
-      34             : 
-      35           0 :   Future<void> persistToken(String token) async {
-      36           0 :     await _storage.write(key: AUTH_TOKEN, value: "Bearer $token");
-      37           0 :     Logger.root.info("Persisted token.");
-      38             :   }
-      39             : 
-      40           0 :   Future<String> getToken() async {
-      41           0 :     final String token = await _storage.read(key: AUTH_TOKEN);
-      42             : 
-      43             :     if (token != null) {
-      44           0 :       Logger.root.info("Has token!");
-      45             :     } else {
-      46           0 :       Logger.root.info("Does not have token!");
-      47             :     }
-      48             : 
-      49             :     return token;
-      50             :   }
-      51             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/repositories/index-sort-f.html b/coverage/lib/remote/repositories/index-sort-f.html deleted file mode 100644 index 050e477..0000000 --- a/coverage/lib/remote/repositories/index-sort-f.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/repositories - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/repositoriesHitTotalCoverage
Test:lcov.infoLines:0170.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_repository.dart -
0.0%
-
0.0 %0 / 17-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/repositories/index-sort-l.html b/coverage/lib/remote/repositories/index-sort-l.html deleted file mode 100644 index 7b8395e..0000000 --- a/coverage/lib/remote/repositories/index-sort-l.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/repositories - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/repositoriesHitTotalCoverage
Test:lcov.infoLines:0170.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_repository.dart -
0.0%
-
0.0 %0 / 17-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/repositories/index.html b/coverage/lib/remote/repositories/index.html deleted file mode 100644 index 3bb246f..0000000 --- a/coverage/lib/remote/repositories/index.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/repositories - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/repositoriesHitTotalCoverage
Test:lcov.infoLines:0170.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_repository.dart -
0.0%
-
0.0 %0 / 17-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/change_password.dart.func-sort-c.html b/coverage/lib/remote/requests/change_password.dart.func-sort-c.html deleted file mode 100644 index ed5f86f..0000000 --- a/coverage/lib/remote/requests/change_password.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/change_password.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - change_password.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/change_password.dart.func.html b/coverage/lib/remote/requests/change_password.dart.func.html deleted file mode 100644 index c9fc5e2..0000000 --- a/coverage/lib/remote/requests/change_password.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/change_password.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - change_password.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/change_password.dart.gcov.html b/coverage/lib/remote/requests/change_password.dart.gcov.html deleted file mode 100644 index f0cb101..0000000 --- a/coverage/lib/remote/requests/change_password.dart.gcov.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/change_password.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - change_password.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'package:flutter/cupertino.dart';
-       2             : 
-       3             : class ChangePassword {
-       4             :   final String currentPassword;
-       5             :   final String newPassword;
-       6             : 
-       7           0 :   ChangePassword({@required this.currentPassword, @required this.newPassword});
-       8             : 
-       9           0 :   factory ChangePassword.fromJson(Map<String, dynamic> json) {
-      10           0 :     return ChangePassword(
-      11           0 :       currentPassword: json["current_password"],
-      12           0 :       newPassword: json["new_password"],
-      13             :     );
-      14             :   }
-      15             : 
-      16           0 :   Map<String, dynamic> toJson() {
-      17           0 :     final Map<String, dynamic> data = new Map<String, dynamic>();
-      18           0 :     data["current_password"] = this.currentPassword;
-      19           0 :     data["new_password"] = this.newPassword;
-      20             :     return data;
-      21             :   }
-      22             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/index-sort-f.html b/coverage/lib/remote/requests/index-sort-f.html deleted file mode 100644 index 9b6ee2c..0000000 --- a/coverage/lib/remote/requests/index-sort-f.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requestsHitTotalCoverage
Test:lcov.infoLines:1472.1 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
login.dart -
25.0%25.0%
-
25.0 %1 / 4-0 / 0
register.dart -
0.0%
-
0.0 %0 / 16-0 / 0
task_request.dart -
0.0%
-
0.0 %0 / 6-0 / 0
relation_requests.dart -
0.0%
-
0.0 %0 / 12-0 / 0
change_password.dart -
0.0%
-
0.0 %0 / 9-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/index-sort-l.html b/coverage/lib/remote/requests/index-sort-l.html deleted file mode 100644 index aab2c09..0000000 --- a/coverage/lib/remote/requests/index-sort-l.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requestsHitTotalCoverage
Test:lcov.infoLines:1472.1 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
task_request.dart -
0.0%
-
0.0 %0 / 6-0 / 0
change_password.dart -
0.0%
-
0.0 %0 / 9-0 / 0
relation_requests.dart -
0.0%
-
0.0 %0 / 12-0 / 0
register.dart -
0.0%
-
0.0 %0 / 16-0 / 0
login.dart -
25.0%25.0%
-
25.0 %1 / 4-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/index.html b/coverage/lib/remote/requests/index.html deleted file mode 100644 index 56aedbb..0000000 --- a/coverage/lib/remote/requests/index.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requestsHitTotalCoverage
Test:lcov.infoLines:1472.1 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
change_password.dart -
0.0%
-
0.0 %0 / 9-0 / 0
login.dart -
25.0%25.0%
-
25.0 %1 / 4-0 / 0
register.dart -
0.0%
-
0.0 %0 / 16-0 / 0
relation_requests.dart -
0.0%
-
0.0 %0 / 12-0 / 0
task_request.dart -
0.0%
-
0.0 %0 / 6-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/login.dart.func-sort-c.html b/coverage/lib/remote/requests/login.dart.func-sort-c.html deleted file mode 100644 index d681f0b..0000000 --- a/coverage/lib/remote/requests/login.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/login.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - login.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1425.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/login.dart.func.html b/coverage/lib/remote/requests/login.dart.func.html deleted file mode 100644 index b8b113f..0000000 --- a/coverage/lib/remote/requests/login.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/login.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - login.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1425.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/login.dart.gcov.html b/coverage/lib/remote/requests/login.dart.gcov.html deleted file mode 100644 index 077247c..0000000 --- a/coverage/lib/remote/requests/login.dart.gcov.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/login.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - login.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1425.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'package:flutter/foundation.dart';
-       2             : 
-       3             : /// This data class represents all data necessary to create a login
-       4             : class Login {
-       5             :   final String username;
-       6             :   final String password;
-       7             : 
-       8           2 :   Login({@required this.username, @required this.password})
-       9           0 :       : assert(username != null),
-      10           0 :         assert(password != null);
-      11             : 
-      12           0 :   Map<String, String> toJson() => {'username': username, "password": password};
-      13             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/register.dart.func-sort-c.html b/coverage/lib/remote/requests/register.dart.func-sort-c.html deleted file mode 100644 index a543219..0000000 --- a/coverage/lib/remote/requests/register.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/register.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - register.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0160.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/register.dart.func.html b/coverage/lib/remote/requests/register.dart.func.html deleted file mode 100644 index 9d40cd1..0000000 --- a/coverage/lib/remote/requests/register.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/register.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - register.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0160.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/register.dart.gcov.html b/coverage/lib/remote/requests/register.dart.gcov.html deleted file mode 100644 index 7f182fa..0000000 --- a/coverage/lib/remote/requests/register.dart.gcov.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/register.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - register.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0160.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'package:flutter/foundation.dart';
-       2             : 
-       3             : /// This data class represents all data necessary to register a new user.
-       4             : /// [name] represents the name of the new user
-       5             : /// [username] represents the username of the new user, used for login
-       6             : /// [email] represents the email of the new user, used for login
-       7             : /// [password] represents the password of the new user, used for login
-       8             : /// [acceptedTermsAndConditions] is true if the user checked the terms and conditions checkbox
-       9             : /// [needsMentoring] is true if the user checked Mentee checkbox
-      10             : /// [availableToMentor] is true if the user
-      11             : class Register {
-      12             :   final String name;
-      13             :   final String username;
-      14             :   final String email;
-      15             :   final String password;
-      16             :   final bool acceptedTermsAndConditions;
-      17             :   final bool needsMentoring;
-      18             :   final bool availableToMentor;
-      19             : 
-      20           0 :   Register({
-      21             :     @required this.name,
-      22             :     @required this.username,
-      23             :     @required this.email,
-      24             :     @required this.password,
-      25             :     @required this.acceptedTermsAndConditions,
-      26             :     @required this.needsMentoring,
-      27             :     @required this.availableToMentor,
-      28           0 :   })  : assert(name != null),
-      29           0 :         assert(username != null),
-      30           0 :         assert(email != null),
-      31           0 :         assert(password != null),
-      32           0 :         assert(acceptedTermsAndConditions != null),
-      33           0 :         assert(needsMentoring != null),
-      34           0 :         assert(availableToMentor != null);
-      35             : 
-      36           0 :   Map<String, dynamic> toJson() => {
-      37           0 :         "name": name,
-      38           0 :         "username": username,
-      39           0 :         "email": email,
-      40           0 :         "password": password,
-      41           0 :         "terms_and_conditions_checked": acceptedTermsAndConditions,
-      42           0 :         "need_mentoring": needsMentoring,
-      43           0 :         "available_to_mentor": availableToMentor,
-      44             :       };
-      45             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/relation_requests.dart.func-sort-c.html b/coverage/lib/remote/requests/relation_requests.dart.func-sort-c.html deleted file mode 100644 index bff3370..0000000 --- a/coverage/lib/remote/requests/relation_requests.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/relation_requests.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - relation_requests.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0120.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/relation_requests.dart.func.html b/coverage/lib/remote/requests/relation_requests.dart.func.html deleted file mode 100644 index 1605fae..0000000 --- a/coverage/lib/remote/requests/relation_requests.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/relation_requests.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - relation_requests.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0120.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/relation_requests.dart.gcov.html b/coverage/lib/remote/requests/relation_requests.dart.gcov.html deleted file mode 100644 index 43e565e..0000000 --- a/coverage/lib/remote/requests/relation_requests.dart.gcov.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/relation_requests.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - relation_requests.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0120.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : /// Rpresents all data necessary to send a mentorship relation request.
-       2             : /// [mentorId] represents mentor user id
-       3             : /// [menteeId] represents mentee user id
-       4             : /// [notes] represents a description of the mentorship relation
-       5             : /// [endDate] represents end date of the mentorship relation
-       6             : class RelationRequest {
-       7             :   final int mentorId;
-       8             :   final int menteeId;
-       9             :   final String notes;
-      10             :   final int endDate;
-      11             : 
-      12           0 :   RelationRequest({this.mentorId, this.menteeId, this.notes, this.endDate});
-      13             : 
-      14           0 :   factory RelationRequest.fromJson(Map<String, dynamic> json) => RelationRequest(
-      15           0 :         mentorId: json["mentor_id"],
-      16           0 :         menteeId: json["mentee_id"],
-      17           0 :         notes: json["notes"],
-      18           0 :         endDate: json["end_date"],
-      19             :       );
-      20             : 
-      21           0 :   Map<String, dynamic> toJson() {
-      22           0 :     final Map<String, dynamic> data = new Map<String, dynamic>();
-      23           0 :     data['mentor_id'] = this.mentorId;
-      24           0 :     data['mentee_id'] = this.menteeId;
-      25           0 :     data['notes'] = this.notes;
-      26           0 :     data['end_date'] = this.endDate;
-      27             :     return data;
-      28             :   }
-      29             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/task_request.dart.func-sort-c.html b/coverage/lib/remote/requests/task_request.dart.func-sort-c.html deleted file mode 100644 index 70c08c4..0000000 --- a/coverage/lib/remote/requests/task_request.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/task_request.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - task_request.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:060.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/task_request.dart.func.html b/coverage/lib/remote/requests/task_request.dart.func.html deleted file mode 100644 index 3cd0458..0000000 --- a/coverage/lib/remote/requests/task_request.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/task_request.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - task_request.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:060.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/requests/task_request.dart.gcov.html b/coverage/lib/remote/requests/task_request.dart.gcov.html deleted file mode 100644 index 4cc8f2b..0000000 --- a/coverage/lib/remote/requests/task_request.dart.gcov.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/requests/task_request.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/requests - task_request.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:060.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'package:flutter/cupertino.dart';
-       2             : 
-       3             : class TaskRequest {
-       4             :   String description;
-       5             : 
-       6           0 :   TaskRequest({@required this.description});
-       7             : 
-       8           0 :   factory TaskRequest.fromJson(Map<String, dynamic> json) =>
-       9           0 :       TaskRequest(description: json["description"]);
-      10             : 
-      11           0 :   Map<String, dynamic> toJson() {
-      12           0 :     final Map<String, dynamic> data = new Map<String, dynamic>();
-      13           0 :     data['description'] = this.description;
-      14             :     return data;
-      15             :   }
-      16             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/responses/auth_token.dart.func-sort-c.html b/coverage/lib/remote/responses/auth_token.dart.func-sort-c.html deleted file mode 100644 index 36a8774..0000000 --- a/coverage/lib/remote/responses/auth_token.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/responses/auth_token.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/responses - auth_token.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1333.3 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/responses/auth_token.dart.func.html b/coverage/lib/remote/responses/auth_token.dart.func.html deleted file mode 100644 index 66cf98a..0000000 --- a/coverage/lib/remote/responses/auth_token.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/responses/auth_token.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/responses - auth_token.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1333.3 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/responses/auth_token.dart.gcov.html b/coverage/lib/remote/responses/auth_token.dart.gcov.html deleted file mode 100644 index c027a23..0000000 --- a/coverage/lib/remote/responses/auth_token.dart.gcov.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/responses/auth_token.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/responses - auth_token.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1333.3 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : /// This class represents all data necessary to create an authentication token.
-       2             : /// [authToken] represents an authentication token
-       3             : /// [expiry] represents the expiry timestamp
-       4             : class AuthToken {
-       5             :   final String token;
-       6             :   final double accessExpiry;
-       7             : 
-       8           1 :   AuthToken(this.token, this.accessExpiry);
-       9             : 
-      10           0 :   factory AuthToken.fromJson(Map<String, dynamic> json) =>
-      11           0 :       AuthToken(json["access_token"], json["access_expiry"]);
-      12             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/responses/index-sort-f.html b/coverage/lib/remote/responses/index-sort-f.html deleted file mode 100644 index 64e925b..0000000 --- a/coverage/lib/remote/responses/index-sort-f.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/responses - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/responsesHitTotalCoverage
Test:lcov.infoLines:1333.3 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_token.dart -
33.3%33.3%
-
33.3 %1 / 3-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/responses/index-sort-l.html b/coverage/lib/remote/responses/index-sort-l.html deleted file mode 100644 index 934d018..0000000 --- a/coverage/lib/remote/responses/index-sort-l.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/responses - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/responsesHitTotalCoverage
Test:lcov.infoLines:1333.3 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_token.dart -
33.3%33.3%
-
33.3 %1 / 3-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/responses/index.html b/coverage/lib/remote/responses/index.html deleted file mode 100644 index b6d3bca..0000000 --- a/coverage/lib/remote/responses/index.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/responses - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/responsesHitTotalCoverage
Test:lcov.infoLines:1333.3 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_token.dart -
33.3%33.3%
-
33.3 %1 / 3-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/auth_service.chopper.dart.func-sort-c.html b/coverage/lib/remote/services/auth_service.chopper.dart.func-sort-c.html deleted file mode 100644 index b3e4257..0000000 --- a/coverage/lib/remote/services/auth_service.chopper.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/auth_service.chopper.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - auth_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:080.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/auth_service.chopper.dart.func.html b/coverage/lib/remote/services/auth_service.chopper.dart.func.html deleted file mode 100644 index f6315fb..0000000 --- a/coverage/lib/remote/services/auth_service.chopper.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/auth_service.chopper.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - auth_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:080.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/auth_service.chopper.dart.gcov.html b/coverage/lib/remote/services/auth_service.chopper.dart.gcov.html deleted file mode 100644 index 45c467c..0000000 --- a/coverage/lib/remote/services/auth_service.chopper.dart.gcov.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/auth_service.chopper.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - auth_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:080.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : // GENERATED CODE - DO NOT MODIFY BY HAND
-       2             : 
-       3             : part of 'auth_service.dart';
-       4             : 
-       5             : // **************************************************************************
-       6             : // ChopperGenerator
-       7             : // **************************************************************************
-       8             : 
-       9             : // ignore_for_file: always_put_control_body_on_new_line, always_specify_types, prefer_const_declarations
-      10             : class _$AuthService extends AuthService {
-      11           0 :   _$AuthService([ChopperClient client]) {
-      12             :     if (client == null) return;
-      13           0 :     this.client = client;
-      14             :   }
-      15             : 
-      16             :   @override
-      17             :   final definitionType = AuthService;
-      18             : 
-      19           0 :   @override
-      20             :   Future<Response<Map<String, dynamic>>> login(Login login) {
-      21             :     final $url = 'login';
-      22             :     final $body = login;
-      23           0 :     final $request = Request('POST', $url, client.baseUrl, body: $body);
-      24           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      25             :   }
-      26             : 
-      27           0 :   @override
-      28             :   Future<Response<Object>> register(Register register) {
-      29             :     final $url = 'register';
-      30             :     final $body = register;
-      31           0 :     final $request = Request('POST', $url, client.baseUrl, body: $body);
-      32           0 :     return client.send<Object, Object>($request);
-      33             :   }
-      34             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/auth_service.dart.func-sort-c.html b/coverage/lib/remote/services/auth_service.dart.func-sort-c.html deleted file mode 100644 index 363c5c1..0000000 --- a/coverage/lib/remote/services/auth_service.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/auth_service.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - auth_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:080.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/auth_service.dart.func.html b/coverage/lib/remote/services/auth_service.dart.func.html deleted file mode 100644 index a984821..0000000 --- a/coverage/lib/remote/services/auth_service.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/auth_service.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - auth_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:080.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/auth_service.dart.gcov.html b/coverage/lib/remote/services/auth_service.dart.gcov.html deleted file mode 100644 index c236653..0000000 --- a/coverage/lib/remote/services/auth_service.dart.gcov.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/auth_service.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - auth_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:080.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'package:chopper/chopper.dart';
-       2             : import 'package:mentorship_client/constants.dart';
-       3             : import 'package:mentorship_client/remote/requests/login.dart';
-       4             : import 'package:mentorship_client/remote/requests/register.dart';
-       5             : 
-       6             : part 'auth_service.chopper.dart';
-       7             : 
-       8             : @ChopperApi(baseUrl: "")
-       9             : abstract class AuthService extends ChopperService {
-      10             :   @Post(path: "login")
-      11             :   Future<Response<Map<String, dynamic>>> login(@Body() Login login);
-      12             : 
-      13             :   @Post(path: "register")
-      14             :   Future<Response<Object>> register(@Body() Register register);
-      15             : 
-      16           0 :   static AuthService create() {
-      17           0 :     final client = ChopperClient(
-      18             :         baseUrl: API_URL,
-      19           0 :         services: [
-      20           0 :           _$AuthService(),
-      21             :         ],
-      22           0 :         converter: JsonConverter(),
-      23           0 :         interceptors: [
-      24           0 :           HttpLoggingInterceptor(),
-      25             :         ]);
-      26             : 
-      27           0 :     return _$AuthService(client);
-      28             :   }
-      29             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/index-sort-f.html b/coverage/lib/remote/services/index-sort-f.html deleted file mode 100644 index 1f7dbfa..0000000 --- a/coverage/lib/remote/services/index-sort-f.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/servicesHitTotalCoverage
Test:lcov.infoLines:01100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
relation_service.chopper.dart -
0.0%
-
0.0 %0 / 27-0 / 0
relation_service.dart -
0.0%
-
0.0 %0 / 9-0 / 0
user_service.dart -
0.0%
-
0.0 %0 / 9-0 / 0
auth_service.chopper.dart -
0.0%
-
0.0 %0 / 8-0 / 0
task_service.chopper.dart -
0.0%
-
0.0 %0 / 18-0 / 0
auth_service.dart -
0.0%
-
0.0 %0 / 8-0 / 0
task_service.dart -
0.0%
-
0.0 %0 / 9-0 / 0
user_service.chopper.dart -
0.0%
-
0.0 %0 / 22-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/index-sort-l.html b/coverage/lib/remote/services/index-sort-l.html deleted file mode 100644 index 806fdef..0000000 --- a/coverage/lib/remote/services/index-sort-l.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/servicesHitTotalCoverage
Test:lcov.infoLines:01100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_service.chopper.dart -
0.0%
-
0.0 %0 / 8-0 / 0
auth_service.dart -
0.0%
-
0.0 %0 / 8-0 / 0
relation_service.dart -
0.0%
-
0.0 %0 / 9-0 / 0
user_service.dart -
0.0%
-
0.0 %0 / 9-0 / 0
task_service.dart -
0.0%
-
0.0 %0 / 9-0 / 0
task_service.chopper.dart -
0.0%
-
0.0 %0 / 18-0 / 0
user_service.chopper.dart -
0.0%
-
0.0 %0 / 22-0 / 0
relation_service.chopper.dart -
0.0%
-
0.0 %0 / 27-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/index.html b/coverage/lib/remote/services/index.html deleted file mode 100644 index 450d51a..0000000 --- a/coverage/lib/remote/services/index.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/servicesHitTotalCoverage
Test:lcov.infoLines:01100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
auth_service.chopper.dart -
0.0%
-
0.0 %0 / 8-0 / 0
auth_service.dart -
0.0%
-
0.0 %0 / 8-0 / 0
relation_service.chopper.dart -
0.0%
-
0.0 %0 / 27-0 / 0
relation_service.dart -
0.0%
-
0.0 %0 / 9-0 / 0
task_service.chopper.dart -
0.0%
-
0.0 %0 / 18-0 / 0
task_service.dart -
0.0%
-
0.0 %0 / 9-0 / 0
user_service.chopper.dart -
0.0%
-
0.0 %0 / 22-0 / 0
user_service.dart -
0.0%
-
0.0 %0 / 9-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/relation_service.chopper.dart.func-sort-c.html b/coverage/lib/remote/services/relation_service.chopper.dart.func-sort-c.html deleted file mode 100644 index 00aaeec..0000000 --- a/coverage/lib/remote/services/relation_service.chopper.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/relation_service.chopper.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - relation_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0270.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/relation_service.chopper.dart.func.html b/coverage/lib/remote/services/relation_service.chopper.dart.func.html deleted file mode 100644 index 64aec3b..0000000 --- a/coverage/lib/remote/services/relation_service.chopper.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/relation_service.chopper.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - relation_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0270.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/relation_service.chopper.dart.gcov.html b/coverage/lib/remote/services/relation_service.chopper.dart.gcov.html deleted file mode 100644 index d7e330e..0000000 --- a/coverage/lib/remote/services/relation_service.chopper.dart.gcov.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/relation_service.chopper.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - relation_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0270.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : // GENERATED CODE - DO NOT MODIFY BY HAND
-       2             : 
-       3             : part of 'relation_service.dart';
-       4             : 
-       5             : // **************************************************************************
-       6             : // ChopperGenerator
-       7             : // **************************************************************************
-       8             : 
-       9             : // ignore_for_file: always_put_control_body_on_new_line, always_specify_types, prefer_const_declarations
-      10             : class _$RelationService extends RelationService {
-      11           0 :   _$RelationService([ChopperClient client]) {
-      12             :     if (client == null) return;
-      13           0 :     this.client = client;
-      14             :   }
-      15             : 
-      16             :   @override
-      17             :   final definitionType = RelationService;
-      18             : 
-      19           0 :   @override
-      20             :   Future<Response<List<dynamic>>> getAllRelations() {
-      21             :     final $url = 'mentorship_relations';
-      22           0 :     final $request = Request('GET', $url, client.baseUrl);
-      23           0 :     return client.send<List<dynamic>, List<dynamic>>($request);
-      24             :   }
-      25             : 
-      26           0 :   @override
-      27             :   Future<Response<Map<String, dynamic>>> acceptRelation(int relationId) {
-      28           0 :     final $url = 'mentorship_relation/$relationId/accept';
-      29           0 :     final $request = Request('PUT', $url, client.baseUrl);
-      30           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      31             :   }
-      32             : 
-      33           0 :   @override
-      34             :   Future<Response<Map<String, dynamic>>> rejectRelationship(int relationId) {
-      35           0 :     final $url = 'mentorship_relation/$relationId/reject';
-      36           0 :     final $request = Request('PUT', $url, client.baseUrl);
-      37           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      38             :   }
-      39             : 
-      40           0 :   @override
-      41             :   Future<Response<Map<String, dynamic>>> deleteRelationship(int relationId) {
-      42           0 :     final $url = 'mentorship_relation/$relationId';
-      43           0 :     final $request = Request('DELETE', $url, client.baseUrl);
-      44           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      45             :   }
-      46             : 
-      47           0 :   @override
-      48             :   Future<Response<Map<String, dynamic>>> cancelRelationship(int relationId) {
-      49           0 :     final $url = 'mentorship_relation/$relationId/cancel';
-      50           0 :     final $request = Request('PUT', $url, client.baseUrl);
-      51           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      52             :   }
-      53             : 
-      54           0 :   @override
-      55             :   Future<Response<Map<String, dynamic>>> sendRequest(
-      56             :       RelationRequest relationRequest) {
-      57             :     final $url = 'mentorship_relation/send_request';
-      58             :     final $body = relationRequest;
-      59           0 :     final $request = Request('POST', $url, client.baseUrl, body: $body);
-      60           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      61             :   }
-      62             : 
-      63           0 :   @override
-      64             :   Future<Response<Map<String, dynamic>>> getCurrentRelation() {
-      65             :     final $url = 'mentorship_relations/current';
-      66           0 :     final $request = Request('GET', $url, client.baseUrl);
-      67           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      68             :   }
-      69             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/relation_service.dart.func-sort-c.html b/coverage/lib/remote/services/relation_service.dart.func-sort-c.html deleted file mode 100644 index b021cb9..0000000 --- a/coverage/lib/remote/services/relation_service.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/relation_service.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - relation_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/relation_service.dart.func.html b/coverage/lib/remote/services/relation_service.dart.func.html deleted file mode 100644 index 114714b..0000000 --- a/coverage/lib/remote/services/relation_service.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/relation_service.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - relation_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/relation_service.dart.gcov.html b/coverage/lib/remote/services/relation_service.dart.gcov.html deleted file mode 100644 index 97f8fb7..0000000 --- a/coverage/lib/remote/services/relation_service.dart.gcov.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/relation_service.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - relation_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'package:chopper/chopper.dart';
-       2             : import 'package:mentorship_client/constants.dart';
-       3             : import 'package:mentorship_client/remote/auth_interceptor.dart';
-       4             : import 'package:mentorship_client/remote/requests/relation_requests.dart';
-       5             : 
-       6             : part 'relation_service.chopper.dart';
-       7             : 
-       8             : @ChopperApi(baseUrl: "")
-       9             : abstract class RelationService extends ChopperService {
-      10             :   /// Returns all mentorship requests and relations of the current user
-      11             :   @Get(path: "mentorship_relations")
-      12             :   Future<Response<List<dynamic>>> getAllRelations();
-      13             : 
-      14             :   /// Performs the acceptance of a mentorship request
-      15             :   @Put(path: "mentorship_relation/{relation_id}/accept")
-      16             :   Future<Response<Map<String, dynamic>>> acceptRelation(@Path("relation_id") int relationId);
-      17             : 
-      18             :   /// Performs the rejection of a mentorship request
-      19             :   @Put(path: "mentorship_relation/{relation_id}/reject")
-      20             :   Future<Response<Map<String, dynamic>>> rejectRelationship(@Path("relation_id") int relationId);
-      21             : 
-      22             :   /// Performs the deletion of a mentorship request
-      23             :   @Delete(path: "mentorship_relation/{relation_id}")
-      24             :   Future<Response<Map<String, dynamic>>> deleteRelationship(@Path("relation_id") int relationId);
-      25             : 
-      26             :   /// Performs the cancellation of a mentorship relation
-      27             :   @Put(path: "mentorship_relation/{relation_id}/cancel")
-      28             :   Future<Response<Map<String, dynamic>>> cancelRelationship(@Path("relation_id") int relationId);
-      29             : 
-      30             :   /// Performs sending a mentorship request
-      31             :   /// [relationRequest] data required to send a mentorship request
-      32             :   @Post(path: "mentorship_relation/send_request")
-      33             :   Future<Response<Map<String, dynamic>>> sendRequest(@Body() RelationRequest relationRequest);
-      34             : 
-      35             :   /// Returns the current mentorship relation
-      36             :   @Get(path: "mentorship_relations/current")
-      37             :   Future<Response<Map<String, dynamic>>> getCurrentRelation();
-      38             : 
-      39           0 :   static RelationService create() {
-      40           0 :     final client = ChopperClient(
-      41             :         baseUrl: API_URL,
-      42           0 :         services: [
-      43           0 :           _$RelationService(),
-      44             :         ],
-      45           0 :         converter: JsonConverter(),
-      46           0 :         interceptors: [
-      47           0 :           HttpLoggingInterceptor(),
-      48           0 :           AuthInterceptor(),
-      49             :         ]);
-      50             : 
-      51           0 :     return _$RelationService(client);
-      52             :   }
-      53             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/task_service.chopper.dart.func-sort-c.html b/coverage/lib/remote/services/task_service.chopper.dart.func-sort-c.html deleted file mode 100644 index 6afb7a2..0000000 --- a/coverage/lib/remote/services/task_service.chopper.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/task_service.chopper.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - task_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0180.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/task_service.chopper.dart.func.html b/coverage/lib/remote/services/task_service.chopper.dart.func.html deleted file mode 100644 index 401089e..0000000 --- a/coverage/lib/remote/services/task_service.chopper.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/task_service.chopper.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - task_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0180.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/task_service.chopper.dart.gcov.html b/coverage/lib/remote/services/task_service.chopper.dart.gcov.html deleted file mode 100644 index 0f7c89e..0000000 --- a/coverage/lib/remote/services/task_service.chopper.dart.gcov.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/task_service.chopper.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - task_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0180.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : // GENERATED CODE - DO NOT MODIFY BY HAND
-       2             : 
-       3             : part of 'task_service.dart';
-       4             : 
-       5             : // **************************************************************************
-       6             : // ChopperGenerator
-       7             : // **************************************************************************
-       8             : 
-       9             : // ignore_for_file: always_put_control_body_on_new_line, always_specify_types, prefer_const_declarations
-      10             : class _$TaskService extends TaskService {
-      11           0 :   _$TaskService([ChopperClient client]) {
-      12             :     if (client == null) return;
-      13           0 :     this.client = client;
-      14             :   }
-      15             : 
-      16             :   @override
-      17             :   final definitionType = TaskService;
-      18             : 
-      19           0 :   @override
-      20             :   Future<Response<List<dynamic>>> getAllTasksFromMentorshipRelation(
-      21             :       int relationId) {
-      22           0 :     final $url = 'mentorship_relation/$relationId/tasks';
-      23           0 :     final $request = Request('GET', $url, client.baseUrl);
-      24           0 :     return client.send<List<dynamic>, List<dynamic>>($request);
-      25             :   }
-      26             : 
-      27           0 :   @override
-      28             :   Future<Response<Map<String, dynamic>>> createTask(
-      29             :       int requestId, TaskRequest taskRequest) {
-      30           0 :     final $url = 'mentorship_relation/$requestId/task';
-      31             :     final $body = taskRequest;
-      32           0 :     final $request = Request('POST', $url, client.baseUrl, body: $body);
-      33           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      34             :   }
-      35             : 
-      36           0 :   @override
-      37             :   Future<Response<Map<String, dynamic>>> completeTask(
-      38             :       int requestId, int taskId) {
-      39           0 :     final $url = 'mentorship_relation/$requestId/task/$taskId/complete';
-      40           0 :     final $request = Request('PUT', $url, client.baseUrl);
-      41           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      42             :   }
-      43             : 
-      44           0 :   @override
-      45             :   Future<Response<Map<String, dynamic>>> deleteTask(int requestId, int taskId) {
-      46           0 :     final $url = 'mentorship_relation/$requestId/task/$taskId';
-      47           0 :     final $request = Request('DELETE', $url, client.baseUrl);
-      48           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      49             :   }
-      50             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/task_service.dart.func-sort-c.html b/coverage/lib/remote/services/task_service.dart.func-sort-c.html deleted file mode 100644 index 2e6392c..0000000 --- a/coverage/lib/remote/services/task_service.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/task_service.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - task_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/task_service.dart.func.html b/coverage/lib/remote/services/task_service.dart.func.html deleted file mode 100644 index 511592b..0000000 --- a/coverage/lib/remote/services/task_service.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/task_service.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - task_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/task_service.dart.gcov.html b/coverage/lib/remote/services/task_service.dart.gcov.html deleted file mode 100644 index 740dc61..0000000 --- a/coverage/lib/remote/services/task_service.dart.gcov.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/task_service.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - task_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'package:chopper/chopper.dart';
-       2             : import 'package:mentorship_client/constants.dart';
-       3             : import 'package:mentorship_client/remote/auth_interceptor.dart';
-       4             : import 'package:mentorship_client/remote/requests/task_request.dart';
-       5             : 
-       6             : part 'task_service.chopper.dart';
-       7             : 
-       8             : @ChopperApi(baseUrl: "")
-       9             : abstract class TaskService extends ChopperService {
-      10             :   /// Returns all the tasks from a mentorship relation
-      11             :   /// [relationId] id of the mentorship relation
-      12             :   @Get(path: "mentorship_relation/{relation_id}/tasks")
-      13             :   Future<Response<List<dynamic>>> getAllTasksFromMentorshipRelation(
-      14             :       @Path("relation_id") int relationId);
-      15             : 
-      16             :   @Post(path: "mentorship_relation/{request_id}/task")
-      17             :   Future<Response<Map<String, dynamic>>> createTask(
-      18             :       @Path("request_id") int requestId, @Body() TaskRequest taskRequest);
-      19             : 
-      20             :   @Put(path: "mentorship_relation/{request_id}/task/{task_id}/complete")
-      21             :   Future<Response<Map<String, dynamic>>> completeTask(
-      22             :       @Path("request_id") int requestId, @Path("task_id") int taskId);
-      23             : 
-      24             :   @Delete(path: "mentorship_relation/{request_id}/task/{task_id}")
-      25             :   Future<Response<Map<String, dynamic>>> deleteTask(
-      26             :       @Path("request_id") int requestId, @Path("task_id") int taskId);
-      27             : 
-      28           0 :   static TaskService create() {
-      29           0 :     final client = ChopperClient(
-      30             :         baseUrl: API_URL,
-      31           0 :         services: [
-      32           0 :           _$TaskService(),
-      33             :         ],
-      34           0 :         converter: JsonConverter(),
-      35           0 :         interceptors: [
-      36           0 :           HttpLoggingInterceptor(),
-      37           0 :           AuthInterceptor(),
-      38             :         ]);
-      39             : 
-      40           0 :     return _$TaskService(client);
-      41             :   }
-      42             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/user_service.chopper.dart.func-sort-c.html b/coverage/lib/remote/services/user_service.chopper.dart.func-sort-c.html deleted file mode 100644 index a40cab3..0000000 --- a/coverage/lib/remote/services/user_service.chopper.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/user_service.chopper.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - user_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0220.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/user_service.chopper.dart.func.html b/coverage/lib/remote/services/user_service.chopper.dart.func.html deleted file mode 100644 index 7456824..0000000 --- a/coverage/lib/remote/services/user_service.chopper.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/user_service.chopper.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - user_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0220.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/user_service.chopper.dart.gcov.html b/coverage/lib/remote/services/user_service.chopper.dart.gcov.html deleted file mode 100644 index 0bee108..0000000 --- a/coverage/lib/remote/services/user_service.chopper.dart.gcov.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/user_service.chopper.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - user_service.chopper.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:0220.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : // GENERATED CODE - DO NOT MODIFY BY HAND
-       2             : 
-       3             : part of 'user_service.dart';
-       4             : 
-       5             : // **************************************************************************
-       6             : // ChopperGenerator
-       7             : // **************************************************************************
-       8             : 
-       9             : // ignore_for_file: always_put_control_body_on_new_line, always_specify_types, prefer_const_declarations
-      10             : class _$UserService extends UserService {
-      11           0 :   _$UserService([ChopperClient client]) {
-      12             :     if (client == null) return;
-      13           0 :     this.client = client;
-      14             :   }
-      15             : 
-      16             :   @override
-      17             :   final definitionType = UserService;
-      18             : 
-      19           0 :   @override
-      20             :   Future<Response<Map<String, dynamic>>> getHomeStats() {
-      21             :     final $url = 'home';
-      22           0 :     final $request = Request('GET', $url, client.baseUrl);
-      23           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      24             :   }
-      25             : 
-      26           0 :   @override
-      27             :   Future<Response<List<dynamic>>> getVerifiedUsers({int page, int perPage = 20}) {
-      28             :     final $url = 'users/verified';
-      29           0 :     final $params = <String, dynamic>{'page': page, 'per_page': perPage};
-      30           0 :     final $request = Request('GET', $url, client.baseUrl, parameters: $params);
-      31           0 :     return client.send<List<dynamic>, List<dynamic>>($request);
-      32             :   }
-      33             : 
-      34           0 :   @override
-      35             :   Future<Response<Map<String, dynamic>>> getCurrentUser() {
-      36             :     final $url = 'user';
-      37           0 :     final $request = Request('GET', $url, client.baseUrl);
-      38           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      39             :   }
-      40             : 
-      41           0 :   @override
-      42             :   Future<Response<Map<String, dynamic>>> getUser(int userId) {
-      43           0 :     final $url = 'user/$userId';
-      44           0 :     final $request = Request('GET', $url, client.baseUrl);
-      45           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      46             :   }
-      47             : 
-      48           0 :   @override
-      49             :   Future<Response<Map<String, dynamic>>> updateUser(User user) {
-      50             :     final $url = 'user';
-      51             :     final $body = user;
-      52           0 :     final $request = Request('PUT', $url, client.baseUrl, body: $body);
-      53           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      54             :   }
-      55             : 
-      56           0 :   @override
-      57             :   Future<Response<Map<String, dynamic>>> changePassword(ChangePassword changePassword) {
-      58             :     final $url = 'user/change_password';
-      59             :     final $body = changePassword;
-      60           0 :     final $request = Request('PUT', $url, client.baseUrl, body: $body);
-      61           0 :     return client.send<Map<String, dynamic>, Map<String, dynamic>>($request);
-      62             :   }
-      63             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/user_service.dart.func-sort-c.html b/coverage/lib/remote/services/user_service.dart.func-sort-c.html deleted file mode 100644 index 163952d..0000000 --- a/coverage/lib/remote/services/user_service.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/user_service.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - user_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/user_service.dart.func.html b/coverage/lib/remote/services/user_service.dart.func.html deleted file mode 100644 index bc0fff1..0000000 --- a/coverage/lib/remote/services/user_service.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/user_service.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - user_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/remote/services/user_service.dart.gcov.html b/coverage/lib/remote/services/user_service.dart.gcov.html deleted file mode 100644 index d9dae3f..0000000 --- a/coverage/lib/remote/services/user_service.dart.gcov.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/remote/services/user_service.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/remote/services - user_service.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:090.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'package:chopper/chopper.dart';
-       2             : import 'package:mentorship_client/constants.dart';
-       3             : import 'package:mentorship_client/remote/auth_interceptor.dart';
-       4             : import 'package:mentorship_client/remote/models/user.dart';
-       5             : import 'package:mentorship_client/remote/requests/change_password.dart';
-       6             : 
-       7             : part 'user_service.chopper.dart';
-       8             : 
-       9             : @ChopperApi(baseUrl: "")
-      10             : abstract class UserService extends ChopperService {
-      11             :   /// Returns the current user's home screen statistics
-      12             :   @Get(path: "home")
-      13             :   Future<Response<Map<String, dynamic>>> getHomeStats();
-      14             : 
-      15             :   /// Returns all users, with email verified, of the system
-      16             :   @Get(path: "users/verified")
-      17             :   Future<Response<List<dynamic>>> getVerifiedUsers({
-      18             :     @Query("page") int page,
-      19             :     @Query("per_page") int perPage = 20,
-      20             :   });
-      21             : 
-      22             :   /// Returns the current user profile
-      23             :   @Get(path: "user")
-      24             :   Future<Response<Map<String, dynamic>>> getCurrentUser();
-      25             : 
-      26             :   /// Returns a specified user's public profile of the system
-      27             :   @Get(path: "user/{userId}")
-      28             :   Future<Response<Map<String, dynamic>>> getUser(@Path("userId") int userId);
-      29             : 
-      30             :   /// Updates the current user's profile
-      31             :   @Put(path: "user")
-      32             :   Future<Response<Map<String, dynamic>>> updateUser(@Body() User user);
-      33             : 
-      34             :   /// Updates the current user's current password
-      35             :   @Put(path: "user/change_password")
-      36             :   Future<Response<Map<String, dynamic>>> changePassword(@Body() ChangePassword changePassword);
-      37             : 
-      38           0 :   static UserService create() {
-      39           0 :     final client = ChopperClient(
-      40             :         baseUrl: API_URL,
-      41           0 :         services: [
-      42           0 :           _$UserService(),
-      43             :         ],
-      44           0 :         converter: JsonConverter(),
-      45           0 :         interceptors: [
-      46           0 :           HttpLoggingInterceptor(),
-      47           0 :           AuthInterceptor(),
-      48             :         ]);
-      49             : 
-      50           0 :     return _$UserService(client);
-      51             :   }
-      52             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/screens/login/bloc/index-sort-f.html b/coverage/lib/screens/login/bloc/index-sort-f.html deleted file mode 100644 index bc55a6e..0000000 --- a/coverage/lib/screens/login/bloc/index-sort-f.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/screens/login/bloc - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/screens/login/blocHitTotalCoverage
Test:lcov.infoLines:2121100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
login_state.dart -
100.0%
-
100.0 %7 / 7-0 / 0
login_event.dart -
100.0%
-
100.0 %4 / 4-0 / 0
login_bloc.dart -
100.0%
-
100.0 %10 / 10-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/screens/login/bloc/index-sort-l.html b/coverage/lib/screens/login/bloc/index-sort-l.html deleted file mode 100644 index f657c7b..0000000 --- a/coverage/lib/screens/login/bloc/index-sort-l.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/screens/login/bloc - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/screens/login/blocHitTotalCoverage
Test:lcov.infoLines:2121100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
login_event.dart -
100.0%
-
100.0 %4 / 4-0 / 0
login_state.dart -
100.0%
-
100.0 %7 / 7-0 / 0
login_bloc.dart -
100.0%
-
100.0 %10 / 10-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/screens/login/bloc/index.html b/coverage/lib/screens/login/bloc/index.html deleted file mode 100644 index 57068f5..0000000 --- a/coverage/lib/screens/login/bloc/index.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/screens/login/bloc - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/screens/login/blocHitTotalCoverage
Test:lcov.infoLines:2121100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Filename Sort by nameLine Coverage Sort by line coverageFunctions Sort by function coverage
login_bloc.dart -
100.0%
-
100.0 %10 / 10-0 / 0
login_event.dart -
100.0%
-
100.0 %4 / 4-0 / 0
login_state.dart -
100.0%
-
100.0 %7 / 7-0 / 0
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/screens/login/bloc/login_bloc.dart.func-sort-c.html b/coverage/lib/screens/login/bloc/login_bloc.dart.func-sort-c.html deleted file mode 100644 index 5c4b86e..0000000 --- a/coverage/lib/screens/login/bloc/login_bloc.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/screens/login/bloc/login_bloc.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/screens/login/bloc - login_bloc.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1010100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/screens/login/bloc/login_bloc.dart.func.html b/coverage/lib/screens/login/bloc/login_bloc.dart.func.html deleted file mode 100644 index 73f8361..0000000 --- a/coverage/lib/screens/login/bloc/login_bloc.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/screens/login/bloc/login_bloc.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/screens/login/bloc - login_bloc.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1010100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/screens/login/bloc/login_bloc.dart.gcov.html b/coverage/lib/screens/login/bloc/login_bloc.dart.gcov.html deleted file mode 100644 index 938c0ea..0000000 --- a/coverage/lib/screens/login/bloc/login_bloc.dart.gcov.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/screens/login/bloc/login_bloc.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/screens/login/bloc - login_bloc.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:1010100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'package:bloc/bloc.dart';
-       2             : import 'package:mentorship_client/auth/auth_bloc.dart';
-       3             : import 'package:mentorship_client/auth/bloc.dart';
-       4             : import 'package:mentorship_client/remote/repositories/auth_repository.dart';
-       5             : import 'package:mentorship_client/screens/login/bloc/login_event.dart';
-       6             : import 'package:mentorship_client/screens/login/bloc/login_state.dart';
-       7             : 
-       8             : class LoginBloc extends Bloc<LoginEvent, LoginState> {
-       9             :   final AuthRepository authRepository;
-      10             :   final AuthBloc authBloc;
-      11             : 
-      12           1 :   LoginBloc(this.authRepository, this.authBloc);
-      13             : 
-      14           1 :   @override
-      15           1 :   get initialState => LoginInitial();
-      16             : 
-      17             :   @override
-      18           1 :   Stream<LoginState> mapEventToState(event) async* {
-      19           1 :     if (event is LoginButtonPressed) {
-      20           2 :       yield LoginInProgress();
-      21             :       try {
-      22           4 :         final token = await authRepository.login(event.login);
-      23           2 :         yield LoginSuccess();
-      24           4 :         authBloc.add(JustLoggedIn(token.token));
-      25             :       } catch (failure) {
-      26           3 :         yield LoginFailure(failure.message);
-      27             :       }
-      28             :     }
-      29             :   }
-      30             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/screens/login/bloc/login_event.dart.func-sort-c.html b/coverage/lib/screens/login/bloc/login_event.dart.func-sort-c.html deleted file mode 100644 index 38a2519..0000000 --- a/coverage/lib/screens/login/bloc/login_event.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/screens/login/bloc/login_event.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/screens/login/bloc - login_event.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:44100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/screens/login/bloc/login_event.dart.func.html b/coverage/lib/screens/login/bloc/login_event.dart.func.html deleted file mode 100644 index eab1787..0000000 --- a/coverage/lib/screens/login/bloc/login_event.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/screens/login/bloc/login_event.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/screens/login/bloc - login_event.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:44100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/screens/login/bloc/login_event.dart.gcov.html b/coverage/lib/screens/login/bloc/login_event.dart.gcov.html deleted file mode 100644 index ad6d028..0000000 --- a/coverage/lib/screens/login/bloc/login_event.dart.gcov.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/screens/login/bloc/login_event.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/screens/login/bloc - login_event.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:44100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'package:equatable/equatable.dart';
-       2             : import 'package:mentorship_client/remote/requests/login.dart';
-       3             : 
-       4             : abstract class LoginEvent extends Equatable {
-       5           2 :   const LoginEvent();
-       6             : }
-       7             : 
-       8             : class LoginButtonPressed extends LoginEvent {
-       9             :   final Login login;
-      10             : 
-      11           2 :   const LoginButtonPressed(this.login);
-      12             : 
-      13           1 :   @override
-      14           2 :   List<Object> get props => [login];
-      15             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/screens/login/bloc/login_state.dart.func-sort-c.html b/coverage/lib/screens/login/bloc/login_state.dart.func-sort-c.html deleted file mode 100644 index 1997b00..0000000 --- a/coverage/lib/screens/login/bloc/login_state.dart.func-sort-c.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/screens/login/bloc/login_state.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/screens/login/bloc - login_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:77100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/screens/login/bloc/login_state.dart.func.html b/coverage/lib/screens/login/bloc/login_state.dart.func.html deleted file mode 100644 index 029b062..0000000 --- a/coverage/lib/screens/login/bloc/login_state.dart.func.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/screens/login/bloc/login_state.dart - functions - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/screens/login/bloc - login_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:77100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- -
- - - - - - -

Function Name Sort by function nameHit count Sort by hit count
-
-
- - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/lib/screens/login/bloc/login_state.dart.gcov.html b/coverage/lib/screens/login/bloc/login_state.dart.gcov.html deleted file mode 100644 index 6d475b3..0000000 --- a/coverage/lib/screens/login/bloc/login_state.dart.gcov.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - LCOV - lcov.info - lib/screens/login/bloc/login_state.dart - - - - - - - - - - - - - - -
LCOV - code coverage report
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Current view:top level - lib/screens/login/bloc - login_state.dart (source / functions)HitTotalCoverage
Test:lcov.infoLines:77100.0 %
Date:2020-06-21 17:54:25Functions:00-
-
- - - - - - - - -

-
          Line data    Source code
-
-       1             : import 'package:equatable/equatable.dart';
-       2             : 
-       3             : abstract class LoginState extends Equatable {
-       4           2 :   const LoginState();
-       5             : 
-       6           1 :   @override
-       7             :   List<Object> get props => null;
-       8             : }
-       9             : 
-      10             : class LoginInitial extends LoginState {}
-      11             : 
-      12             : class LoginInProgress extends LoginState {}
-      13             : 
-      14             : class LoginSuccess extends LoginState {}
-      15             : 
-      16             : class LoginFailure extends LoginState {
-      17             :   final String message;
-      18             : 
-      19           2 :   const LoginFailure(this.message);
-      20             : 
-      21           2 :   @override
-      22           4 :   List<Object> get props => [message];
-      23           1 :   @override
-      24           2 :   String toString() => 'LoginFailure { error: $message }';
-      25             : }
-
-
-
- - - - -
Generated by: LCOV version 1.14
-
- - - diff --git a/coverage/ruby.png b/coverage/ruby.png deleted file mode 100644 index 991b6d4ec9e78be165e3ef757eed1aada287364d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga>?NMQuI!iC1^FceV#7`HfI^%F z9+AZi4BSE>%y{W;-5;PJOS+@4BLl<6e(pbstUx|nfKQ0)e^Y%R^MdiLxj>4`)5S5Q b;#P73kj=!v_*DHKNFRfztDnm{r-UW|iOwIS diff --git a/coverage/snow.png b/coverage/snow.png deleted file mode 100644 index 2cdae107fceec6e7f02ac7acb4a34a82a540caa5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga>?NMQuI!iC1^MM!lvI6;R0X`wF|Ns97GD8ntt^-nBo-U3d c6}OTTfNUlP#;5A{K>8RwUHx3vIVCg!071?oo&W#< diff --git a/coverage/updown.png b/coverage/updown.png deleted file mode 100644 index aa56a238b3e6c435265250f9266cd1b8caba0f20..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 117 zcmeAS@N?(olHy`uVBq!ia0vp^AT}Qd8;}%R+`Ae`*?77*hG?8mPH5^{)z4*}Q$iB}huR`+ From cd953c57cb2de5b1e560354699b5b7fb0b517913 Mon Sep 17 00:00:00 2001 From: Techno-Disaster Date: Fri, 26 Jun 2020 03:42:11 +0530 Subject: [PATCH 13/18] move to travis? --- .github/workflows/main.yml | 10 ++-------- .travis.yml | 3 ++- README.md | 9 ++++----- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fc2018e..01faa7f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ on: - 'android/**' jobs: buildios: - name: Build and test iOS builds + name: iOS build runs-on: macos-latest steps: - uses: actions/checkout@v2 @@ -24,11 +24,10 @@ jobs: - run: git clone https://github.com/flutter/flutter.git --depth 1 -b v1.15.17 _flutter - run: echo "::add-path::$GITHUB_WORKSPACE/_flutter/bin" - run: flutter pub get - - run: flutter test --coverage working-directory: ./ - run: flutter build ios --no-codesign buildandroid: - name: Build and test Android builds + name: Android build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -38,10 +37,5 @@ jobs: - run: git clone https://github.com/flutter/flutter.git --depth 1 -b v1.15.17 _flutter - run: echo "::add-path::$GITHUB_WORKSPACE/_flutter/bin" - run: flutter pub get - - run: flutter test --coverage working-directory: ./ - run: flutter build appbundle - - uses: codecov/codecov-action@v1.0.2 - with: - token: ${{secrets.CODECOV_TOKEN}} - file: ./coverage/lcov.info diff --git a/.travis.yml b/.travis.yml index 8e7537e..1564f61 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,8 @@ before_script: - chmod +x generate-apks.sh script: - ./flutter/bin/flutter build apk - - ./flutter/bin/flutter test + - ./flutter/bin/flutter test --coverage + - bash <(curl -s https://codecov.io/bash) after_success: - ./generate-apks.sh diff --git a/README.md b/README.md index 37e1f0c..01d3ef1 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ # Cross-platform client for Mentorship System -| Branch | [Travis](https://travis-ci.org/) | -| :----------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------: | -| [develop](https://github.com/anitab-org/mentorship-flutter/tree/develop) | [![Build Status](https://travis-ci.com/anitab-org/mentorship-flutter.svg?branch=develop)](https://travis-ci.com/anitab-org/mentorship-flutter) | +| Branch | [Travis](https://travis-ci.org/) | Codecov | +| ------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| [develop](https://github.com/anitab-org/mentorship-flutter/tree/develop) | [![Build Status](https://travis-ci.com/anitab-org/mentorship-flutter.svg?branch=develop)](https://travis-ci.com/anitab-org/mentorship-flutter) | [![codecov](https://codecov.io/gh/anitab-org/mentorship-flutter/branch/develop/graph/badge.svg)](https://codecov.io/gh/anitab-org/mentorship-flutter) | -[![codecov](https://codecov.io/gh/Techno-Disaster/mentorship-flutter/branch/master/graph/badge.svg)](https://codecov.io/gh/Techno-Disaster/mentorship-flutter) Mentorship System is an application that allows women in tech to mentor each other, on career development topics, through 1:1 relations for a certain period of time. @@ -33,7 +32,7 @@ We have a dedicated stream for this project [#mentorship-system](https://anitab- ### Overview -- App _tries_ to follow Clean Architecture guidelines. Logic is separated into 4 layers: +- App _tries_ to follow Clean Architecture guidelines. Logic is separated into 4 layers:**** - `UI` - `BLoC` - `Repository` From 90a0e28bced6bf018b5bf1788d4b6fdbde4d10a2 Mon Sep 17 00:00:00 2001 From: Techno-Disaster Date: Fri, 26 Jun 2020 03:52:19 +0530 Subject: [PATCH 14/18] test readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 01d3ef1..190669e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ | Branch | [Travis](https://travis-ci.org/) | Codecov | | ------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| [develop](https://github.com/anitab-org/mentorship-flutter/tree/develop) | [![Build Status](https://travis-ci.com/anitab-org/mentorship-flutter.svg?branch=develop)](https://travis-ci.com/anitab-org/mentorship-flutter) | [![codecov](https://codecov.io/gh/anitab-org/mentorship-flutter/branch/develop/graph/badge.svg)](https://codecov.io/gh/anitab-org/mentorship-flutter) | +| [develop](https://github.com/anitab-org/mentorship-flutter/tree/develop) | [![Build Status](https://travis-ci.com/anitab-org/mentorship-flutter.svg?branch=develop)](https://travis-ci.com/anitab-org/mentorship-flutter) | [![codecov](https://codecov.io/gh/anitab-org/mentorship-flutter/branch/unit-tests/graph/badge.svg)](https://codecov.io/gh/anitab-org/mentorship-flutter) | Mentorship System is an application that allows women in tech to mentor each other, on career development topics, through 1:1 relations for a certain period of time. From 99f025b6dbd04bd4b50eda987075104c3d88724d Mon Sep 17 00:00:00 2001 From: Techno-Disaster Date: Fri, 26 Jun 2020 04:12:46 +0530 Subject: [PATCH 15/18] edit codecov bot reply --- README.md | 2 +- codecov.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/README.md b/README.md index 190669e..01d3ef1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ | Branch | [Travis](https://travis-ci.org/) | Codecov | | ------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| [develop](https://github.com/anitab-org/mentorship-flutter/tree/develop) | [![Build Status](https://travis-ci.com/anitab-org/mentorship-flutter.svg?branch=develop)](https://travis-ci.com/anitab-org/mentorship-flutter) | [![codecov](https://codecov.io/gh/anitab-org/mentorship-flutter/branch/unit-tests/graph/badge.svg)](https://codecov.io/gh/anitab-org/mentorship-flutter) | +| [develop](https://github.com/anitab-org/mentorship-flutter/tree/develop) | [![Build Status](https://travis-ci.com/anitab-org/mentorship-flutter.svg?branch=develop)](https://travis-ci.com/anitab-org/mentorship-flutter) | [![codecov](https://codecov.io/gh/anitab-org/mentorship-flutter/branch/develop/graph/badge.svg)](https://codecov.io/gh/anitab-org/mentorship-flutter) | Mentorship System is an application that allows women in tech to mentor each other, on career development topics, through 1:1 relations for a certain period of time. diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..1ea4dd2 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,5 @@ +comment: + layout: "diff, files" + behavior: new + require_changes: false # if true: only post the comment if coverage changes + From d1c8fc7751c726dd7e10659137648c582ca57632 Mon Sep 17 00:00:00 2001 From: Jayesh Nirve Date: Fri, 26 Jun 2020 05:08:49 +0530 Subject: [PATCH 16/18] fix readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 01d3ef1..7d075c2 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ We have a dedicated stream for this project [#mentorship-system](https://anitab- ### Overview -- App _tries_ to follow Clean Architecture guidelines. Logic is separated into 4 layers:**** +- App _tries_ to follow Clean Architecture guidelines. Logic is separated into 4 layers: - `UI` - `BLoC` - `Repository` From 6aee5f1a309393b20aa7f7e223a96f570dc18f2c Mon Sep 17 00:00:00 2001 From: Jayesh Nirve Date: Wed, 1 Jul 2020 13:07:12 +0530 Subject: [PATCH 17/18] Update codecov.yml --- codecov.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/codecov.yml b/codecov.yml index 1ea4dd2..accceea 100644 --- a/codecov.yml +++ b/codecov.yml @@ -3,3 +3,10 @@ comment: behavior: new require_changes: false # if true: only post the comment if coverage changes +coverage: + status: + project: + default: + target: auto # will use the coverage from the base commit + threshold: 0% + base: auto From 633df7e9a2ed97b024f61bb923f7e957058ab6cc Mon Sep 17 00:00:00 2001 From: Techno-Disaster Date: Mon, 20 Jul 2020 20:25:08 +0530 Subject: [PATCH 18/18] fix on Failure --- lib/screens/login/bloc/login_bloc.dart | 3 ++- test/login_test/login_bloc_test.dart | 11 ++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/screens/login/bloc/login_bloc.dart b/lib/screens/login/bloc/login_bloc.dart index c2953e4..c865312 100644 --- a/lib/screens/login/bloc/login_bloc.dart +++ b/lib/screens/login/bloc/login_bloc.dart @@ -1,6 +1,7 @@ import 'package:bloc/bloc.dart'; import 'package:mentorship_client/auth/auth_bloc.dart'; import 'package:mentorship_client/auth/bloc.dart'; +import 'package:mentorship_client/failure.dart'; import 'package:mentorship_client/remote/repositories/auth_repository.dart'; import 'package:mentorship_client/screens/login/bloc/login_event.dart'; import 'package:mentorship_client/screens/login/bloc/login_state.dart'; @@ -22,7 +23,7 @@ class LoginBloc extends Bloc { final token = await authRepository.login(event.login); yield LoginSuccess(); authBloc.add(JustLoggedIn(token.token)); - } catch (failure) { + } on Failure catch (failure) { yield LoginFailure(failure.message); } } diff --git a/test/login_test/login_bloc_test.dart b/test/login_test/login_bloc_test.dart index 6e589c6..9b7cc3c 100644 --- a/test/login_test/login_bloc_test.dart +++ b/test/login_test/login_bloc_test.dart @@ -1,5 +1,6 @@ import 'package:bloc_test/bloc_test.dart'; import 'package:flutter_test/flutter_test.dart'; +import 'package:mentorship_client/failure.dart'; import 'package:mentorship_client/remote/requests/login.dart'; import 'package:mentorship_client/remote/responses/auth_token.dart'; import 'package:mentorship_client/screens/login/bloc/bloc.dart'; @@ -86,19 +87,15 @@ void main() { build: () async { when(userRepository.login( login, - )).thenThrow(Exception('login-error')); + )).thenThrow(Failure('login-error')); return loginBloc; }, act: (bloc) => bloc.add( - LoginButtonPressed( - login, - ), + LoginButtonPressed(login), ), expect: [ LoginInProgress(), - LoginFailure( - 'login-error', - ), + LoginFailure('login-error'), ], verify: (_) async { verifyNever(authenticationBloc.add(any));