mirror of
https://github.com/minio/minio.git
synced 2025-11-28 21:18:10 -05:00
Full restructure in accordance with
- pkg/{subsystem}/{package} style
- modify Makefile to reflect the new style,
consolidate various entries
- add a dummy ``main.go`` at top level
This commit is contained in:
23
pkg/os/scsi/scsi_test.go
Normal file
23
pkg/os/scsi/scsi_test.go
Normal file
@@ -0,0 +1,23 @@
|
||||
// !build linux,amd64
|
||||
package scsi
|
||||
|
||||
import (
|
||||
. "gopkg.in/check.v1"
|
||||
"testing"
|
||||
)
|
||||
|
||||
type MySuite struct{}
|
||||
|
||||
var _ = Suite(&MySuite{})
|
||||
|
||||
func Test(t *testing.T) { TestingT(t) }
|
||||
|
||||
func (s *MySuite) TestSCSI(c *C) {
|
||||
var d Devices
|
||||
err := d.Get()
|
||||
c.Assert(err, IsNil)
|
||||
c.Assert(len(d.List), Equals, 1)
|
||||
|
||||
c.Assert(len(d.List[0].Scsiattrmap), Not(Equals), 0)
|
||||
c.Assert(len(d.List[0].Diskattrmap), Not(Equals), 0)
|
||||
}
|
||||
Reference in New Issue
Block a user