initial commit
This commit is contained in:
commit
8666e4461c
6 changed files with 242 additions and 0 deletions
23
godrop_test.go
Normal file
23
godrop_test.go
Normal 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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue