Lines Matching refs:fn
65 for (const fn of hintOptBlocks) {
66 assert.throws(fn, {
141 for (const fn of portArgFunctions) {
142 assert.throws(fn, assertErr, `${fn.name}(${port})`);
150 for (const fn of portHostArgFunctions) {
151 assert.throws(fn, assertErr, `${fn.name}(${port}, 'localhost')`);
157 for (const fn of portOptFunctions) {
158 assert.throws(fn, assertErr, `${fn.name}({port: ${port}})`);
166 for (const fn of portHostOptFunctions) {
167 assert.throws(fn,
169 `${fn.name}({port: ${port}, host: 'localhost'})`);
179 for (const fn of portArgFunctions) {
180 fn();
186 for (const fn of portHostArgFunctions) {
187 fn();
192 for (const fn of portOptFunctions) {
193 fn();
199 for (const fn of portHostOptFns) {
200 fn();
214 for (const fn of portArgFunctions) {
215 fn().on('error', onError());
220 for (const fn of portOptFunctions) {
221 fn().on('error', onError());
227 for (const fn of portHostOptFns) {
228 fn().on('error', onError());