package daemon import ( "testing" "github.com/docker/docker/api/types/network" "github.com/docker/docker/errdefs" "github.com/stretchr/testify/assert" ) // Test case for 35752 func TestVerifyNetworkingConfig(t *testing.T) { name := "mynet" endpoints := make(map[string]*network.EndpointSettings, 1) endpoints[name] = nil nwConfig := &network.NetworkingConfig{ EndpointsConfig: endpoints, } err := verifyNetworkingConfig(nwConfig) assert.True(t, errdefs.IsInvalidParameter(err)) }