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

Function TestSystemProcessesError

pkg/api/system_test.go:149–157  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

147}
148
149func 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
159func TestSystemReleases(t *testing.T) {
160 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