(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestSetupSignalHandler(t *testing.T) { |
| 11 | _, finishCh := SetupSignalHandler() |
| 12 | pid := os.Getpid() |
| 13 | syscall.Kill(pid, syscall.SIGTERM) |
| 14 | syscall.Kill(pid, syscall.SIGCHLD) |
| 15 | time.Sleep(time.Second) |
| 16 | close(finishCh) |
| 17 | } |
nothing calls this directly
no test coverage detected