(t *testing.T)
| 313 | } |
| 314 | |
| 315 | func TestFindNetworkErrorType(t *testing.T) { |
| 316 | d := Daemon{} |
| 317 | _, err := d.FindNetwork("fakeNet") |
| 318 | var nsn libnetwork.ErrNoSuchNetwork |
| 319 | ok := errors.As(err, &nsn) |
| 320 | if !cerrdefs.IsNotFound(err) || !ok { |
| 321 | t.Error("The FindNetwork method MUST always return an error that implements the NotFound interface and is ErrNoSuchNetwork") |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | // TestDeriveULABaseNetwork checks that for a given hostID, the derived prefix is stable over time. |
| 326 | func TestDeriveULABaseNetwork(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…