(type)
| 101 | */ |
| 102 | class TestDoubleBenchmarker { |
| 103 | constructor(type) { |
| 104 | // `type` is the type of benchmarker. Possible values are 'http', 'https', |
| 105 | // and 'http2'. |
| 106 | this.name = `test-double-${type}`; |
| 107 | this.executable = path.resolve(__dirname, '_test-double-benchmarker.js'); |
| 108 | this.present = fs.existsSync(this.executable); |
| 109 | this.type = type; |
| 110 | } |
| 111 | |
| 112 | create(options) { |
| 113 | process.env.duration ||= options.duration || 5; |
nothing calls this directly
no test coverage detected