mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-31 03:42:48 +00:00
Update variable name
Co-Authored-By: RW <renewerner87@googlemail.com>
This commit is contained in:
parent
ce3d950971
commit
d940948112
@ -254,11 +254,11 @@ func Benchmark_Router_Next(b *testing.B) {
|
||||
defer app.ReleaseCtx(c)
|
||||
|
||||
for n := 0; n < b.N; n++ {
|
||||
c.index = -1
|
||||
c.indexRoute = -1
|
||||
res = app.next(c)
|
||||
}
|
||||
utils.AssertEqual(b, true, res)
|
||||
utils.AssertEqual(b, 31, c.index)
|
||||
utils.AssertEqual(b, 31, c.indexRoute)
|
||||
}
|
||||
|
||||
// go test -v ./... -run=^$ -bench=Benchmark_Route_Match -benchmem -count=4
|
||||
|
Loading…
x
Reference in New Issue
Block a user