(t *testing.T)
| 51 | } |
| 52 | |
| 53 | func TestHostInUse(t *testing.T) { |
| 54 | ns := &Namespace{name: "test"} |
| 55 | ns.applications = append(ns.applications, |
| 56 | NewApplication(ns, ApplicationSettings{Name: "app1", Host: "app1.localhost"}), |
| 57 | NewApplication(ns, ApplicationSettings{Name: "app2", Host: "app2.localhost"}), |
| 58 | ) |
| 59 | |
| 60 | assert.True(t, ns.HostInUse("app1.localhost")) |
| 61 | assert.True(t, ns.HostInUse("app2.localhost")) |
| 62 | assert.False(t, ns.HostInUse("other.localhost")) |
| 63 | } |
| 64 | |
| 65 | func TestHostInUseByAnother(t *testing.T) { |
| 66 | ns := &Namespace{name: "test"} |
nothing calls this directly
no test coverage detected
searching dependent graphs…