LCOV - code coverage report
Current view: top level - src/core/primitives/number - number.js (source / functions) Hit Total Coverage
Test: cov_profile.lcov Lines: 9 9 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                 :         42 : const number = (seeded, { max = 1e6, min = 0, precision = 0 } = {}) => {
       2            [ + ]:        692 :   const multiplier = Math.pow(10, precision);
       3                 :        692 :   return (
       4                 :        692 :     Math.floor((seeded.random() * (1 + max - min) + min) * multiplier) /
       5                 :        692 :     multiplier
       6                 :        692 :   );
       7                 :         42 : };
       8                 :         42 : 
       9                 :         21 : export default number;

Generated by: LCOV version 1.15