(c *libnetwork.Controller, networkType, networkName string, netOption options.Generic, ipamV4Configs, ipamV6Configs []*libnetwork.IpamConf)
| 60 | } |
| 61 | |
| 62 | func createTestNetwork(c *libnetwork.Controller, networkType, networkName string, netOption options.Generic, ipamV4Configs, ipamV6Configs []*libnetwork.IpamConf) (*libnetwork.Network, error) { |
| 63 | return c.NewNetwork(context.Background(), networkType, networkName, "", |
| 64 | libnetwork.NetworkOptionGeneric(netOption), |
| 65 | libnetwork.NetworkOptionIpam(defaultipam.DriverName, "", ipamV4Configs, ipamV6Configs, nil)) |
| 66 | } |
| 67 | |
| 68 | func getEmptyGenericOption() map[string]any { |
| 69 | return map[string]any{netlabel.GenericData: map[string]string{}} |
no test coverage detected
searching dependent graphs…