1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-08-10 21:52:01 +02:00

List test function properly named.

This commit is contained in:
Milos Gajdos
2019-07-01 23:19:35 +01:00
parent 956902f641
commit 8f22e61a8b
2 changed files with 3 additions and 11 deletions

View File

@@ -16,14 +16,6 @@ func testSetup() (Table, Route) {
return table, route
}
func TestNewTable(t *testing.T) {
table := NewTable()
if table.Size() != 0 {
t.Errorf("new table should be empty")
}
}
func TestAdd(t *testing.T) {
table, route := testSetup()
@@ -170,7 +162,7 @@ func TestUpdate(t *testing.T) {
}
}
func TestListRoutest(t *testing.T) {
func TestList(t *testing.T) {
table, route := testSetup()
dest := []string{"one.svc", "two.svc", "three.svc"}

View File

@@ -29,10 +29,10 @@ const (
// String returns human reprensentation of policy
func (p RoutePolicy) String() string {
switch p {
case OverrideIfExists:
return "OVERRIDE_IF_EXISTS"
case AddIfNotExists:
return "ADD_IF_NOT_EXISTS"
case OverrideIfExists:
return "OVERRIDE_IF_EXISTS"
case IgnoreIfExists:
return "IGNORE_IF_EXISTS"
default: