LCOV - code coverage report
Current view: top level - randomjs/engine - nativeMath.ts (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 3 6 50.0 %
Date: 2021-03-12 10:43:40 Functions: 0 1 0.0 %

          Line data    Source code
       1             : import { Engine } from "../types.ts";
       2           1 : import { UINT32_SIZE } from "../utils/constants.ts";
       3             : 
       4             : /**
       5             :  * An int32-producing Engine that uses `Math.random()`
       6             :  */
       7           1 : export const nativeMath: Engine = {
       8           0 :   next() {
       9           0 :     return (Math.random() * UINT32_SIZE) | 0;
      10           0 :   }
      11           1 : };

Generated by: LCOV version 1.15