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

           Branch data     Line data    Source code
       1                 :         46 : const Register = (registerFactory, registerMethod) =>
       2            [ + ]:         98 :   (...extensions) =>
       3            [ + ]:        266 :     extensions.forEach((plugin) => {
       4            [ + ]:        708 :       const [name, fn] = typeof plugin === "function"
       5                 :        708 :         ? [plugin.name, plugin]
       6       [ + ][ + ]:        708 :         : plugin;
       7       [ + ][ + ]:        708 : 
       8                 :        708 :       registerFactory(
       9                 :        708 :         name[0].toUpperCase() + name.slice(1),
      10                 :          0 :         (...args) => (seeded) => fn(seeded, ...args),
      11         [ +  + ]:        708 :       );
      12                 :        708 : 
      13                 :          0 :       registerMethod(name, function (...args) {
      14            [ + ]:          0 :         return fn(this, ...args);
      15                 :          0 :       });
      16                 :         46 :     });
      17                 :         46 : 
      18                 :         23 : export default Register;

Generated by: LCOV version 1.15