MCPcopy
hub / github.com/homebridge/homebridge / kill

Method kill

src/childBridgeService.spec.ts:29–36  ·  view source on GitHub ↗
(signal: NodeJS.Signals = 'SIGTERM')

Source from the content-addressed store, hash-verified

27 }
28
29 kill(signal: NodeJS.Signals = 'SIGTERM'): boolean {
30 this.killCalls.push(signal)
31 if (signal === 'SIGTERM' || signal === 'SIGKILL') {
32 // Simulate the child exiting in response.
33 this.connected = false
34 }
35 return true
36 }
37}
38
39// Track every fake child process the mock creates so tests can grab the

Callers 2

teardownMethod · 0.80
errorHandlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected