Replace godep with dep
This commit is contained in:
parent
1e7489927c
commit
bf5616c65b
14883 changed files with 3937406 additions and 361781 deletions
26
vendor/github.com/ncabatoff/process-exporter/proc/base_test.go
generated
vendored
Normal file
26
vendor/github.com/ncabatoff/process-exporter/proc/base_test.go
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
package proc
|
||||
|
||||
import (
|
||||
. "gopkg.in/check.v1"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// Hook up gocheck into the "go test" runner.
|
||||
func Test(t *testing.T) { TestingT(t) }
|
||||
|
||||
type MySuite struct{}
|
||||
|
||||
var _ = Suite(&MySuite{})
|
||||
|
||||
// read everything in the iterator
|
||||
func consumeIter(pi ProcIter) ([]ProcIdInfo, error) {
|
||||
infos := []ProcIdInfo{}
|
||||
for pi.Next() {
|
||||
info, err := Info(pi)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
infos = append(infos, info)
|
||||
}
|
||||
return infos, nil
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue