(t *testing.T)
| 224 | } |
| 225 | |
| 226 | func TestSysBlockDeviceSize(t *testing.T) { |
| 227 | blockdevice, err := NewFS("testdata/fixtures/proc", "testdata/fixtures/sys") |
| 228 | if err != nil { |
| 229 | t.Fatalf("failed to access blockdevice fs: %v", err) |
| 230 | } |
| 231 | devices, err := blockdevice.SysBlockDevices() |
| 232 | if err != nil { |
| 233 | t.Fatal(err) |
| 234 | } |
| 235 | size11, err := blockdevice.SysBlockDeviceSize(devices[11]) |
| 236 | if err != nil { |
| 237 | t.Fatal(err) |
| 238 | } |
| 239 | size11Expected := uint64(1920383410176) |
| 240 | if size11 != size11Expected { |
| 241 | t.Errorf("Incorrect BlockDeviceSize, expected: \n%+v, got: \n%+v", size11Expected, size11) |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | func TestSysBlockDeviceRotational(t *testing.T) { |
| 246 | blockdevice, err := NewFS("testdata/fixtures/proc", "testdata/fixtures/sys") |
nothing calls this directly
no test coverage detected
searching dependent graphs…