(t *testing.T)
| 142 | } |
| 143 | |
| 144 | func TestProcessGetError(t *testing.T) { |
| 145 | testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) { |
| 146 | var p1 *structs.Process |
| 147 | p.On("ProcessGet", "app1", "pid1").Return(nil, fmt.Errorf("err1")) |
| 148 | err := c.Get("/apps/app1/processes/pid1", stdsdk.RequestOptions{}, p1) |
| 149 | require.Nil(t, p1) |
| 150 | require.EqualError(t, err, "err1") |
| 151 | }) |
| 152 | } |
| 153 | |
| 154 | func TestProcessList(t *testing.T) { |
| 155 | testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) { |
nothing calls this directly
no test coverage detected