src/spec/lib/builder.js
function mapFalseInputs(suite, input, p) {
  if (p === undefined) {
    p = 0;
  }

  for (p; p < input.length; p++) {
    if (input[p] === false) {
      var i, newInput = [];

      for (i in suite[map[p]]) {
        var mapped, cloned = input.slice(0);
        cloned[p] = i;
        if ((mapped = mapFalseInputs(suite, cloned, p + 1)) !== true) {
          newInput = newInput.concat(mapped);
        } else {
          newInput.push(cloned);
        }
      }

      return newInput;
    }
  }
  return true;
}
function mapFalseInputs(suite, input, p) {
  if (p === undefined) {
    p = 0;
  }

  for (p; p < input.length; p++) {
    if (input[p] === false) {
      var i, newInput = [];

      for (i in suite[map[p]]) {
        var mapped, cloned = input.slice(0);
        cloned[p] = i;
        if ((mapped = mapFalseInputs(suite, cloned, p + 1)) !== true) {
          newInput = newInput.concat(mapped);
        } else {
          newInput.push(cloned);
        }
      }

      return newInput;
    }
  }
  return true;
}
function mapFalseInputs ( suite , input , p ) { if ( p === undefined ) { p = 0 ; } for ( p ; p < input . length ; p ++ ) { if ( input [ p ] === false ) { var i , newInput = [ ] ; for ( i in suite [ map [ p ] ] ) { var mapped , cloned = input . slice ( 0 ) ; cloned [ p ] = i ; if ( ( mapped = mapFalseInputs ( suite , cloned , p + 1 ) ) !== true ) { newInput = newInput . concat ( mapped ) ; } else { newInput . push ( cloned ) ; } } return newInput ; } } return true ; }
Expands tests containing false to repeat over all the available values

@param {Obect} suite Test suite of test array to expand
@param {Array} input Test to expand
@param {number} p Last test element expanded

@returns {Array|true} New expanded array or true if no expansion required
Expands tests containing false to repeat over all the available values