LCOV - code coverage report
Current view: top level - landing/bloc - landing_bloc.dart (source / functions) Hit Total Coverage
Test: SWE574 - Fall2023 - Group1 - Mobile Test Coverage Lines: 8 8 100.0 %
Date: 2023-12-31 10:28:05 Functions: 0 0 -
Legend: Lines: hit not hit

          Line data    Source code
       1             : // ignore: depend_on_referenced_packages
       2             : import 'package:bloc/bloc.dart';
       3             : 
       4             : part 'landing_event.dart';
       5             : part 'landing_state.dart';
       6             : 
       7             : class LandingBloc extends Bloc<LandingEvent, LandingState> {
       8           2 :   LandingBloc() : super(const LandingInitial()) {
       9           2 :     on<LandingLoadEvent>(_onLandingLoadEvent);
      10           2 :     on<LandingOnPageChangedEvent>(_onLandingOnPageChangedEvent);
      11             :   }
      12           1 :   void _onLandingOnPageChangedEvent(
      13             :       LandingOnPageChangedEvent event, Emitter<LandingState> emit) async {
      14           3 :     emit(LandingDisplayState(tabIndex: event.tabIndex));
      15           3 :     emit(LandingJumpToPageState(tabIndex: event.tabIndex));
      16             :   }
      17             : 
      18           1 :   void _onLandingLoadEvent(
      19             :       LandingLoadEvent event, Emitter<LandingState> emit) async {
      20           3 :     emit(LandingDisplayState(tabIndex: event.tabIndex));
      21             :   }
      22             : }

Generated by: LCOV version 1.14