(t *testing.T, c config)
| 578 | } |
| 579 | |
| 580 | func testStatus(t *testing.T, c config) { |
| 581 | wd := newRemote(t, c) |
| 582 | defer quitRemote(t, wd) |
| 583 | |
| 584 | status, err := wd.Status() |
| 585 | if err != nil { |
| 586 | t.Fatalf("wd.Status() returned error: %v", err) |
| 587 | } |
| 588 | |
| 589 | if c.sauce == nil { |
| 590 | if len(status.OS.Name) == 0 && status.Message == "" { |
| 591 | t.Fatalf("OS.Name or Message not provided: %+v", status) |
| 592 | } |
| 593 | } else if status.Build.Version != "Sauce Labs" { |
| 594 | t.Fatalf("status.Build.Version = %q, expected 'Sauce Labs'", status.Build.Version) |
| 595 | } |
| 596 | } |
| 597 | |
| 598 | func testNewSession(t *testing.T, c config) { |
| 599 | // Bypass NewRemote which itself calls NewSession internally. |
nothing calls this directly
no test coverage detected
searching dependent graphs…