A full restructure
This commit is contained in:
22
pkg/sysctl/sysctl_test.go
Normal file
22
pkg/sysctl/sysctl_test.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// !build linux,amd64
|
||||
|
||||
package sysctl
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
. "gopkg.in/check.v1"
|
||||
)
|
||||
|
||||
type MySuite struct{}
|
||||
|
||||
var _ = Suite(&MySuite{})
|
||||
|
||||
func Test(t *testing.T) { TestingT(t) }
|
||||
|
||||
func (s *MySuite) TestSysctl(c *C) {
|
||||
sysctl := Sysctl{}
|
||||
err := sysctl.Get()
|
||||
c.Assert(err, IsNil)
|
||||
c.Assert(sysctl.Sysattrmap, Not(Equals), 0)
|
||||
}
|
||||
Reference in New Issue
Block a user