Skip to content

Commit

Permalink
✅ test: fix Test_Ctx_ParamParser route param (#2119)
Browse files Browse the repository at this point in the history
test: fix Test_Ctx_ParamParser route param
  • Loading branch information
li-jin-gou committed Sep 25, 2022
1 parent d461bf2 commit 14a5f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctx_test.go
Expand Up @@ -431,7 +431,7 @@ func Test_Ctx_BodyParser(t *testing.T) {
func Test_Ctx_ParamParser(t *testing.T) {
t.Parallel()
app := New()
app.Get("/test1/userId/role/:roleId", func(ctx *Ctx) error {
app.Get("/test1/:userId/role/:roleId", func(ctx *Ctx) error {
type Demo struct {
UserID uint `params:"userId"`
RoleID uint `params:"roleId"`
Expand Down

2 comments on commit 14a5f61

@ReneWerner87
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 14a5f61 Previous: ca6f25a Ratio
Benchmark_Ctx_Protocol 14.1 ns/op 0 B/op 0 allocs/op 2.346 ns/op 0 B/op 0 allocs/op 6.01

This comment was automatically generated by workflow using github-action-benchmark.

@ReneWerner87
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 14a5f61 Previous: 0de4e2e Ratio
Benchmark_TrimLeft/fiber 13.6 ns/op 0 B/op 0 allocs/op 2.85 ns/op 0 B/op 0 allocs/op 4.77

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.