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

Function TestBuildCreateError

pkg/api/build_test.go:78–86  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

76}
77
78func TestBuildCreateError(t *testing.T) {
79 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {
80 var b1 *structs.Build
81 p.On("BuildCreate", "app1", "", structs.BuildCreateOptions{}).Return(nil, fmt.Errorf("err1"))
82 err := c.Post("/apps/app1/builds", stdsdk.RequestOptions{}, b1)
83 require.Nil(t, b1)
84 require.EqualError(t, err, "err1")
85 })
86}
87
88func TestBuildExport(t *testing.T) {
89 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {

Callers

nothing calls this directly

Calls 2

PostMethod · 0.80
testServerFunction · 0.70

Tested by

no test coverage detected