Lines Matching refs:init
10 const initHooks = require('./init-hooks');
36 checkInvocations(tcpserver, { init: 1 }, 'when calling server.listen');
57 checkInvocations(tcpserver, { init: 1 },
59 checkInvocations(tcp1, { init: 1 }, 'tcp1 when client is connecting');
74 { init: 1, before: 1, after: 1 } :
75 { init: 1, before: 1 };
90 // been invoked at this point already, otherwise it only was 'init'ed
91 const expected = serverConnection ? { init: 1 } : { init: 1, before: 1 };
102 { init: 1, before: 1, after: 1 } :
103 { init: 1 };
105 checkInvocations(tcp1, { init: 1 }, 'tcp1 when client connects');
121 checkInvocations(tcpserver, { init: 1, before: 1 },
123 checkInvocations(tcp1, { init: 1 }, 'tcp1 when server receives connection');
124 checkInvocations(tcp2, { init: 1 }, 'tcp2 when server receives connection');
132 checkInvocations(tcpserver, { init: 1, before: 1, after: 1, destroy: 1 },
134 checkInvocations(tcp1, { init: 1, before: 2, after: 2, destroy: 1 },
137 checkInvocations(tcp2, { init: 1, before: 1, after: 1 },
141 checkInvocations(tcp2, { init: 1, before: 2, after: 2, destroy: 1 },
143 checkInvocations(tcpconnect, { init: 1, before: 1, after: 1, destroy: 1 },
154 checkInvocations(tcpserver, { init: 1, before: 1, after: 1, destroy: 1 },
157 tcp1, { init: 1, before: 2, after: 2, destroy: 1 },
160 tcp2, { init: 1, before: 2, after: 2, destroy: 1 },
163 tcpconnect, { init: 1, before: 1, after: 1, destroy: 1 },