(t *testing.T)
| 56 | } |
| 57 | |
| 58 | func TestSystemGetError(t *testing.T) { |
| 59 | testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) { |
| 60 | var s1 *structs.System |
| 61 | p.On("SystemGet").Return(nil, fmt.Errorf("err1")) |
| 62 | err := c.Get("/system", stdsdk.RequestOptions{}, s1) |
| 63 | require.EqualError(t, err, "err1") |
| 64 | require.Nil(t, s1) |
| 65 | }) |
| 66 | } |
| 67 | |
| 68 | func TestSystemLogs(t *testing.T) { |
| 69 | testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) { |
nothing calls this directly
no test coverage detected