MCPcopy Create free account
hub / github.com/convox/rack / TestProcessGetError

Function TestProcessGetError

pkg/api/process_test.go:144–152  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

142}
143
144func 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
154func TestProcessList(t *testing.T) {
155 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {

Callers

nothing calls this directly

Calls 2

testServerFunction · 0.70
GetMethod · 0.65

Tested by

no test coverage detected