bench/fixtures/generator.js
/**
   * Writes a fixture according to the given parameters.
   *
   * @public
   * @param {number} fileCount - How many files to create in the fixture.
   * @param {number} depth - How many sub-directories in the fixture. Each
   * directory level will have `FILE_COUNT` files.
   * @param {string} contents - The contents to use for each file. Files will
   * also have a unique identifier appended to the end of their contents.
   */
Writes a fixture according to the given parameters.
@public
@param {number} fileCount - How many files to create in the fixture.
@param {number} depth - How many sub-directories in the fixture. Each
directory level will have `FILE_COUNT` files.
@param {string} contents - The contents to use for each file. Files will
also have a unique identifier appended to the end of their contents.
Writes a fixture according to the given parameters . @public @param { number } fileCount - How many files to create in the fixture . @param { number } depth - How many sub - directories in the fixture . Each directory level will have ` FILE_COUNT ` files . @param { string } contents - The contents to use for each file . Files will also have a unique identifier appended to the end of their contents .
write(fileCount, depth = 1, contents = '') {
    this.fixture = this._generateFixture(fileCount, depth, contents);
    fs.mkdirpSync(this.directory);
    fixturify.writeSync(this.directory, this.fixture);
  }
write ( fileCount , depth = 1 , contents = '' ) { this . fixture = this . _generateFixture ( fileCount , depth , contents ) ; fs . mkdirpSync ( this . directory ) ; fixturify . writeSync ( this . directory , this . fixture ) ; }
Writes a fixture according to the given parameters.
Writes a fixture according to the given parameters .