(t *testing.T)
| 285 | } |
| 286 | |
| 287 | func TestListDevices(t *testing.T) { |
| 288 | s, err := NewSession(NewGraph(), nil) |
| 289 | if err != nil { |
| 290 | t.Fatalf("NewSession(): %v", err) |
| 291 | } |
| 292 | |
| 293 | devices, err := s.ListDevices() |
| 294 | if err != nil { |
| 295 | t.Fatalf("ListDevices(): %v", err) |
| 296 | } |
| 297 | |
| 298 | if len(devices) == 0 { |
| 299 | t.Fatalf("no devices detected") |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | func TestDeviceString(t *testing.T) { |
| 304 | d := Device{Name: "foo", Type: "bar", MemoryLimitBytes: 12345} |
nothing calls this directly
no test coverage detected