LCOV - code coverage report
Current view: top level - redux/extensions - reducers_list_extension.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 2 2 100.0 %
Date: 2022-03-03 12:16:56 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:redux/redux.dart';
       2             : 
       3             : import '../../../types.dart';
       4             : 
       5             : extension ReducersListExtension<T extends RedFireState> on List<Reducer<T>> {
       6             :   /// Takes a list of [Reducer] and create a single reducer that applies all
       7             :   /// reducers in the list, using a [List.fold].
       8           2 :   Reducer<T> combine() => (state, dynamic action) =>
       9           3 :       fold(state, (previousState, reducer) => reducer(previousState, action));
      10             : }

Generated by: LCOV version 1.13