LCOV - code coverage report
Current view: top level - src - bootstrap.js (source / functions) Hit Total Coverage
Test: cov_profile.lcov Lines: 49 49 100.0 %
Date: 2021-12-16 00:47:58 Functions: 1 1 100.0 %
Branches: 1 1 100.0 %

           Branch data     Line data    Source code
       1                 :          6 : import Fiona from "./core/index.js";
       2            [ + ]:          6 : 
       3                 :          6 : import bool from "./bool/bool.js";
       4                 :          6 : import choose from "./choose/choose.js";
       5                 :          6 : import oneOf from "./choose/one-of.js";
       6                 :          6 : import date from "./date/date.js";
       7                 :          6 : import img from "./img/img.js";
       8                 :          6 : import duplicable from "./duplicable/duplicable.js";
       9                 :          6 : 
      10                 :          6 : import { lorem, paragraph, sentence, word } from "./lorem/lorem.js";
      11                 :          6 : import {
      12                 :          6 :   firstname,
      13                 :          6 :   firstnames,
      14                 :          6 :   fullname,
      15                 :          6 :   gender,
      16                 :          6 :   namedata,
      17                 :          6 :   surname,
      18                 :          6 :   title,
      19                 :          6 : } from "./name/name.js";
      20                 :          6 : import Regex from "./regex/regex.js";
      21                 :          6 : import shuffle from "./shuffle/shuffle.js";
      22                 :          6 : 
      23                 :          6 : export default (RandExp) => {
      24                 :         12 :   Fiona.register(
      25                 :         12 :     ["bool", bool],
      26                 :         12 :     ["choose", choose],
      27                 :         12 :     ["oneOf", oneOf],
      28                 :         12 :     ["date", date],
      29                 :         12 :     ["img", img],
      30                 :         12 :     ["duplicable", duplicable],
      31                 :         12 :     ["lorem", lorem],
      32                 :         12 :     ["word", word],
      33                 :         12 :     ["sentence", sentence],
      34                 :         12 :     ["paragraph", paragraph],
      35                 :         12 :     ["gender", gender],
      36                 :         12 :     ["title", title],
      37                 :         12 :     ["firstname", firstname],
      38                 :         12 :     ["firstnames", firstnames],
      39                 :         12 :     ["surname", surname],
      40                 :         12 :     ["fullname", fullname],
      41                 :         12 :     ["regex", Regex(RandExp)],
      42                 :         12 :     ["shuffle", shuffle],
      43                 :         12 :   );
      44                 :         12 : 
      45                 :         12 :   // TODO: move namedata to getter/setter function - somehow encapsulate name plugin
      46                 :         12 :   Fiona.namedata = namedata;
      47                 :         12 : 
      48                 :         12 :   return Fiona;
      49                 :          3 : };

Generated by: LCOV version 1.15