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

Function TestProcessGet

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

Source from the content-addressed store, hash-verified

131}
132
133func 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
144func TestProcessGetError(t *testing.T) {
145 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