(t *testing.T)
| 27 | } |
| 28 | |
| 29 | func TestWithApplicationNotFound(t *testing.T) { |
| 30 | ns, err := docker.NewNamespace("test") |
| 31 | require.NoError(t, err) |
| 32 | |
| 33 | err = withApplication(ns, "missing.localhost", "testing", func(app *docker.Application) error { |
| 34 | t.Fatal("should not be called") |
| 35 | return nil |
| 36 | }) |
| 37 | |
| 38 | require.Error(t, err) |
| 39 | assert.Contains(t, err.Error(), `no application found at host "missing.localhost"`) |
| 40 | } |
| 41 | |
| 42 | func TestWithApplicationError(t *testing.T) { |
| 43 | ns, err := docker.NewNamespace("test", docker.WithApplications( |
nothing calls this directly
no test coverage detected
searching dependent graphs…