LCOV - code coverage report
Current view: top level - src/choose - one-of.js (source / functions) Hit Total Coverage
Test: cov_profile.lcov Lines: 7 7 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                 :         10 : import chooser from "./chooser.js";
       2            [ + ]:         10 : 
       3                 :         10 : const oneOf = (seeded, arr, { weights = [] } = {}) => {
       4                 :         88 :   return arr[chooser(seeded.random(), arr, weights)];
       5                 :         10 : };
       6                 :         10 : 
       7                 :          5 : export default oneOf;

Generated by: LCOV version 1.15