compress empty implementations to single line (#740)
This commit is contained in:
parent
5942f5dd5b
commit
7219bff11f
2 changed files with 7 additions and 22 deletions
|
@ -282,13 +282,9 @@ func TestIpFromPodName(t *testing.T) {
|
|||
|
||||
type APIConnServiceTest struct{}
|
||||
|
||||
func (APIConnServiceTest) Run() {
|
||||
return
|
||||
}
|
||||
|
||||
func (APIConnServiceTest) Stop() error {
|
||||
return nil
|
||||
}
|
||||
func (APIConnServiceTest) Run() { return }
|
||||
func (APIConnServiceTest) Stop() error { return nil }
|
||||
func (APIConnServiceTest) PodIndex(string) []interface{} { return nil }
|
||||
|
||||
func (APIConnServiceTest) ServiceList() []*api.Service {
|
||||
svcs := []*api.Service{
|
||||
|
@ -334,10 +330,6 @@ func (APIConnServiceTest) ServiceList() []*api.Service {
|
|||
|
||||
}
|
||||
|
||||
func (APIConnServiceTest) PodIndex(string) []interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (APIConnServiceTest) EndpointsList() api.EndpointsList {
|
||||
n := "test.node.foo.bar"
|
||||
|
||||
|
@ -437,6 +429,7 @@ func (APIConnServiceTest) GetNodeByName(name string) (api.Node, error) {
|
|||
},
|
||||
}, nil
|
||||
}
|
||||
|
||||
func TestServices(t *testing.T) {
|
||||
|
||||
k := Kubernetes{Zones: []string{"interwebs.test"}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue