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

Function TestObjectDeleteError

pkg/api/object_test.go:28–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func TestObjectDeleteError(t *testing.T) {
29 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {
30 p.On("ObjectDelete", "app1", "path/object1.ext").Return(fmt.Errorf("err1"))
31 err := c.Delete("/apps/app1/objects/path/object1.ext", stdsdk.RequestOptions{}, nil)
32 require.EqualError(t, err, "err1")
33 })
34}
35
36func TestObjectExists(t *testing.T) {
37 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {

Callers

nothing calls this directly

Calls 1

testServerFunction · 0.70

Tested by

no test coverage detected