LCOV - code coverage report
Current view: top level - src/core/primitives/object - object.js (source / functions) Hit Total Coverage
Test: cov_profile.lcov Lines: 13 13 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 : const object = (seeded, ...originals) => {
       2            [ + ]:        386 :   return originals.reduce((_memo, original) => {
       3            [ + ]:        730 :     return seeded.recurse(seeded, original);
       4                 :        730 :     // return recurseData(seeded, original, undefined, undefined, memo)
       5                 :        730 :     // TODO: re-instate error checking for object
       6                 :        730 :     // const result = recurseData(seeded, original, undefined, undefined, memo)
       7                 :        730 :     // if (!(typeof result === 'object' && result.constructor === Object)) {
       8                 :        730 :     //   throw Error('arguments of Fiona.Object must be an Object or function that returns an Object')
       9                 :        730 :     // }
      10                 :        730 :     // return result
      11                 :        386 :   }, {});
      12                 :         42 : };
      13                 :         21 : export default object;

Generated by: LCOV version 1.15