(x *testing.T)
| 45 | } |
| 46 | |
| 47 | func TestStats(x *testing.T) { |
| 48 | s, addr := openProxy() |
| 49 | defer s.Close() |
| 50 | |
| 51 | var c = NewApiClient(addr) |
| 52 | |
| 53 | c.SetXAuth(config.ProductName, config.ProductAuth, "") |
| 54 | _, err1 := c.StatsSimple() |
| 55 | assert.Must(err1 != nil) |
| 56 | |
| 57 | c.SetXAuth(config.ProductName, config.ProductAuth, s.Model().Token) |
| 58 | _, err2 := c.Stats(0) |
| 59 | assert.MustNoError(err2) |
| 60 | } |
| 61 | |
| 62 | func verifySlots(c *ApiClient, expect map[int]*models.Slot) { |
| 63 | slots, err := c.Slots() |
nothing calls this directly
no test coverage detected