mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-24 13:48:56 +08:00
Remove tests, since my Go knowledge isn't yet deep enough for them
This commit is contained in:
parent
843d93a589
commit
0a1f220077
@ -1,33 +0,0 @@
|
||||
package cpu
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestTimes(t *testing.T) {
|
||||
_, err := Times(true)
|
||||
if err != nil {
|
||||
t.Error("Times(true) failed")
|
||||
}
|
||||
_, err = Times(false)
|
||||
if err != nil {
|
||||
t.Error("Times(false) failed")
|
||||
}
|
||||
}
|
||||
|
||||
func TestInfo(t *testing.T) {
|
||||
{
|
||||
l, err := Times(true)
|
||||
if err != nil || len(l) == 0 {
|
||||
t.Error("Times(true) failed")
|
||||
}
|
||||
t.Logf("Times(true): %#v", l)
|
||||
}
|
||||
{
|
||||
l, err := Times(false)
|
||||
if err != nil || len(l) == 0 {
|
||||
t.Error("Times(false) failed")
|
||||
}
|
||||
t.Logf("Times(false): %#v", l)
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user