1+ // Copyright 2015-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License"). You may
4+ // not use this file except in compliance with the License. A copy of the
5+ // License is located at
6+ //
7+ // http://aws.amazon.com/apache2.0/
8+ //
9+ // or in the "license" file accompanying this file. This file is distributed
10+ // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11+ // express or implied. See the License for the specific language governing
12+ // permissions and limitations under the License.
13+
114package network
215
316import (
@@ -13,7 +26,7 @@ import (
1326 "github.com/aws/amazon-ecs-cli/ecs-cli/modules/cli/local/network/mock_network"
1427)
1528
16- type CallsConfigurer func (docker * mock_network.MockLocalEndpointsStarter ) * mock_network.MockLocalEndpointsStarter
29+ type mockStarterCalls func (docker * mock_network.MockLocalEndpointsStarter ) * mock_network.MockLocalEndpointsStarter
1730
1831type notFoundErr struct {}
1932
@@ -30,7 +43,7 @@ func TestSetup(t *testing.T) {
3043 // The validation of whether those fields behave as expected should be captured in integration tests.
3144 // See https://github.com/aws/amazon-ecs-cli/issues/772
3245 tests := map [string ]struct {
33- configureCalls CallsConfigurer
46+ configureCalls mockStarterCalls
3447 }{
3548 "new network and new container" : {
3649 configureCalls : func (docker * mock_network.MockLocalEndpointsStarter ) * mock_network.MockLocalEndpointsStarter {
0 commit comments