(t *testing.T)
| 147 | } |
| 148 | |
| 149 | func TestSystemProcessesError(t *testing.T) { |
| 150 | testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) { |
| 151 | var p1 structs.Processes |
| 152 | p.On("SystemProcesses", structs.SystemProcessesOptions{}).Return(nil, fmt.Errorf("erp1")) |
| 153 | err := c.Get("/system/processes", stdsdk.RequestOptions{}, &p1) |
| 154 | require.EqualError(t, err, "erp1") |
| 155 | require.Nil(t, p1) |
| 156 | }) |
| 157 | } |
| 158 | |
| 159 | func TestSystemReleases(t *testing.T) { |
| 160 | testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) { |
nothing calls this directly
no test coverage detected