@@ -4,33 +4,34 @@ require "../../../src/options"
4
4
describe " analyzer_go_echo" do
5
5
options = default_options()
6
6
instance = AnalyzerGoEcho .new(options)
7
+ groups = [] of Hash (String , String )
7
8
8
9
it " instance.get_route_path - GET" do
9
- instance.get_route_path(" e.GET(\" /\" , func(c echo.Context) error {" ).should eq(" /" )
10
+ instance.get_route_path(" e.GET(\" /\" , func(c echo.Context) error {" , groups ).should eq(" /" )
10
11
end
11
12
it " instance.get_route_path - POST" do
12
- instance.get_route_path(" e.POST(\" /\" , func(c echo.Context) error {" ).should eq(" /" )
13
+ instance.get_route_path(" e.POST(\" /\" , func(c echo.Context) error {" , groups ).should eq(" /" )
13
14
end
14
15
it " instance.get_route_path - PUT" do
15
- instance.get_route_path(" e.PUT(\" /\" , func(c echo.Context) error {" ).should eq(" /" )
16
+ instance.get_route_path(" e.PUT(\" /\" , func(c echo.Context) error {" , groups ).should eq(" /" )
16
17
end
17
18
it " instance.get_route_path - DELETE" do
18
- instance.get_route_path(" e.DELETE(\" /\" , func(c echo.Context) error {" ).should eq(" /" )
19
+ instance.get_route_path(" e.DELETE(\" /\" , func(c echo.Context) error {" , groups ).should eq(" /" )
19
20
end
20
21
it " instance.get_route_path - PATCH" do
21
- instance.get_route_path(" e.PATCH(\" /\" , func(c echo.Context) error {" ).should eq(" /" )
22
+ instance.get_route_path(" e.PATCH(\" /\" , func(c echo.Context) error {" , groups ).should eq(" /" )
22
23
end
23
24
it " instance.get_route_path - HEAD" do
24
- instance.get_route_path(" e.HEAD(\" /\" , func(c echo.Context) error {" ).should eq(" /" )
25
+ instance.get_route_path(" e.HEAD(\" /\" , func(c echo.Context) error {" , groups ).should eq(" /" )
25
26
end
26
27
it " instance.get_route_path - OPTIONS" do
27
- instance.get_route_path(" e.OPTIONS(\" /\" , func(c echo.Context) error {" ).should eq(" /" )
28
+ instance.get_route_path(" e.OPTIONS(\" /\" , func(c echo.Context) error {" , groups ).should eq(" /" )
28
29
end
29
30
it " instance.get_route_path - customContext1" do
30
- instance.get_route_path(" customEnv.OPTIONS(\" /\" , func(c echo.Context) error {" ).should eq(" /" )
31
+ instance.get_route_path(" customEnv.OPTIONS(\" /\" , func(c echo.Context) error {" , groups ).should eq(" /" )
31
32
end
32
33
it " instance.get_route_path - customContext2" do
33
- instance.get_route_path(" customEnv.OPTIONS(\" /\" , func(myContext echo.Context) error {" ).should eq(" /" )
34
+ instance.get_route_path(" customEnv.OPTIONS(\" /\" , func(myContext echo.Context) error {" , groups ).should eq(" /" )
34
35
end
35
36
36
37
it " instance.get_static_path - Static" do
0 commit comments