()
| 148 | process.on('exit', onexit); |
| 149 | |
| 150 | function onexit() { |
| 151 | hooks.disable(); |
| 152 | hooks.sanityCheck([ 'TCPWRAP', 'TCPSERVERWRAP', 'TCPCONNECTWRAP' ]); |
| 153 | |
| 154 | checkInvocations(tcpserver, { init: 1, before: 1, after: 1, destroy: 1 }, |
| 155 | 'tcpserver when process exits'); |
| 156 | checkInvocations( |
| 157 | tcp1, { init: 1, before: 2, after: 2, destroy: 1 }, |
| 158 | 'tcp1 when process exits'); |
| 159 | checkInvocations( |
| 160 | tcp2, { init: 1, before: 2, after: 2, destroy: 1 }, |
| 161 | 'tcp2 when process exits'); |
| 162 | checkInvocations( |
| 163 | tcpconnect, { init: 1, before: 1, after: 1, destroy: 1 }, |
| 164 | 'tcpconnect when process exits'); |
| 165 | } |
nothing calls this directly
no test coverage detected