From 6ff4500e3c76c8505327042d980dea3d4a1b661c Mon Sep 17 00:00:00 2001 From: kataras Date: Mon, 12 Jun 2017 04:52:06 +0300 Subject: [PATCH] Rename MacroMap to simply, Map on tests too Former-commit-id: 22a4d4de2af2763f6d6e16037299dd2df7b05e35 --- core/router/macro/macro_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/router/macro/macro_test.go b/core/router/macro/macro_test.go index c60f3571..f103684e 100644 --- a/core/router/macro/macro_test.go +++ b/core/router/macro/macro_test.go @@ -75,7 +75,7 @@ func testEvaluatorRaw(macroEvaluator *Macro, input string, pass bool, i int, t * } func TestStringEvaluatorRaw(t *testing.T) { - f := NewMacroMap() + f := NewMap() tests := []struct { pass bool @@ -95,7 +95,7 @@ func TestStringEvaluatorRaw(t *testing.T) { } func TestIntEvaluatorRaw(t *testing.T) { - f := NewMacroMap() + f := NewMap() tests := []struct { pass bool @@ -114,7 +114,7 @@ func TestIntEvaluatorRaw(t *testing.T) { } func TestAlphabeticalEvaluatorRaw(t *testing.T) { - f := NewMacroMap() + f := NewMap() tests := []struct { pass bool @@ -133,7 +133,7 @@ func TestAlphabeticalEvaluatorRaw(t *testing.T) { } func TestFileEvaluatorRaw(t *testing.T) { - f := NewMacroMap() + f := NewMap() tests := []struct { pass bool @@ -152,7 +152,7 @@ func TestFileEvaluatorRaw(t *testing.T) { } func TestPathEvaluatorRaw(t *testing.T) { - f := NewMacroMap() + f := NewMap() pathTests := []struct { pass bool @@ -172,7 +172,7 @@ func TestPathEvaluatorRaw(t *testing.T) { } // func TestMapRegisterFunc(t *testing.T) { -// m := NewMacroMap() +// m := NewMap() // m.String.RegisterFunc("prefix", func(prefix string) EvaluatorFunc { // return func(paramValue string) bool { // return strings.HasPrefix(paramValue, prefix)