diff options
author | Ruben Pollan <meskio@sindominio.net> | 2019-01-12 18:18:23 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2019-01-15 14:39:21 +0100 |
commit | bea32af5d45702e5608d347bf2bf6314d899f2e0 (patch) | |
tree | 3a3b65123a751624a866176d9d59424707474363 /pid_test.go | |
parent | 933ad2aeda754499753e91be05aa9f5556539d35 (diff) |
[feat] Reorganize code
Let's use a more structured folder system:
https://github.com/golang-standards/project-layout
- Resolves: #99
Diffstat (limited to 'pid_test.go')
-rw-r--r-- | pid_test.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/pid_test.go b/pid_test.go deleted file mode 100644 index 2c92641..0000000 --- a/pid_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package main - -import ( - "syscall" - "testing" -) - -const ( - invalidPid = 345678 -) - -func TestPidRunning(t *testing.T) { - pid := syscall.Getpid() - if !pidRunning(pid) { - t.Errorf("pid %v is not running", pid) - } - - if pidRunning(invalidPid) { - t.Errorf("pid %v is running", invalidPid) - } -} |