initial commit

This commit is contained in:
ston1th 2016-09-05 22:15:15 +02:00
commit 8666e4461c
6 changed files with 242 additions and 0 deletions

23
godrop_test.go Normal file
View file

@ -0,0 +1,23 @@
package godrop
import "testing"
func TestUID(t *testing.T) {
uid, err := UID("root")
if err != nil {
t.Error(err)
}
if uid != 0 {
t.Error("expected uid '0' got", uid)
}
}
func TestGID(t *testing.T) {
gid, err := GID("root")
if err != nil {
t.Error(err)
}
if gid != 0 {
t.Error("expected gid '0' got", gid)
}
}