LCOV - code coverage report
Current view: | top level - src/models/organizers/organizer_helper - story_helper.dart (source / functions) |  |  | Hit | Total | Coverage
Test: | lcov.info |  | Lines: | 5 | 5 | 100.0 %
Date: | 2021-10-11 06:57:03 |  | Functions: | 0 | 0 | -

              Line data    Source code
           1             : import 'package:widgetbook/src/models/organizers/organizer_helper/organizer_helper.dart';
           2             : import 'package:widgetbook/src/models/organizers/organizers.dart';
           3             :
           4             : /// Helper to obtain all Stories in the navigation tree.
           5             : class StoryHelper {
           6           1 :   static List<Story> getAllStoriesFromCategories(List<Category> categories) {
           7           1 :     final widgets = WidgetHelper.getAllWidgetElementsFromCategories(
           8             :       categories,
           9             :     );
          10             :
          11           1 :     final stories = List<Story>.empty(growable: true);
          12           2 :     for (final widget in widgets) {
          13           2 :       stories.addAll(widget.stories);
          14             :     }
          15             :
          16             :     return stories;
          17             :   }
          18             : }

Generated by: LCOV version 1.15