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

           Branch data     Line data    Source code
       1                 :         42 : // TODO: document Fiona.String
       2            [ + ]:         42 : 
       3                 :         42 : // TODO: can injected values be same as result of Fiona.Array?
       4                 :         42 : const string = (seeded, [first, ...rest], ...variables) => {
       5                 :         52 :   const variable = seeded.recurse(seeded, variables);
       6                 :         52 :   return rest.reduce(
       7                 :         52 :     (memo, item, index) => `${memo}${variable[index]}${item}`,
       8            [ + ]:         52 :     first,
       9                 :         52 :   );
      10                 :         42 : };
      11                 :         42 : 
      12                 :         21 : export default string;

Generated by: LCOV version 1.15