(stopSignalChannel chan interface{})
| 434 | } |
| 435 | |
| 436 | func waitForSigInt(stopSignalChannel chan interface{}) { |
| 437 | c := make(chan os.Signal, 1) |
| 438 | signal.Notify(c, os.Interrupt) |
| 439 | go func() { |
| 440 | for sig := range c { |
| 441 | log.Debugf("Signal received: %s", sig) |
| 442 | var stopSignal interface{} |
| 443 | stopSignalChannel <- stopSignal |
| 444 | } |
| 445 | }() |
| 446 | } |
| 447 | |
| 448 | func checkDeviceIsPaired(device screencapture.IosDevice) { |
| 449 | dev, err := ios.GetDevice(screencapture.Correct24CharacterSerial(device.SerialNumber)) |
no outgoing calls
no test coverage detected