(t *testing.T)
| 131 | } |
| 132 | |
| 133 | func TestProcessGet(t *testing.T) { |
| 134 | testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) { |
| 135 | p1 := fxProcess |
| 136 | p2 := structs.Process{} |
| 137 | p.On("ProcessGet", "app1", "pid1").Return(&p1, nil) |
| 138 | err := c.Get("/apps/app1/processes/pid1", stdsdk.RequestOptions{}, &p2) |
| 139 | require.NoError(t, err) |
| 140 | require.Equal(t, p1, p2) |
| 141 | }) |
| 142 | } |
| 143 | |
| 144 | func TestProcessGetError(t *testing.T) { |
| 145 | testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) { |
nothing calls this directly
no test coverage detected