(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func TestWithApplicationError(t *testing.T) { |
| 43 | ns, err := docker.NewNamespace("test", docker.WithApplications( |
| 44 | docker.ApplicationSettings{Name: "myapp", Host: "myapp.localhost"}, |
| 45 | )) |
| 46 | require.NoError(t, err) |
| 47 | |
| 48 | err = withApplication(ns, "myapp.localhost", "starting", func(app *docker.Application) error { |
| 49 | return assert.AnError |
| 50 | }) |
| 51 | |
| 52 | require.Error(t, err) |
| 53 | assert.Contains(t, err.Error(), "starting application") |
| 54 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…