Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vearutop
Copy link
Member

@vearutop vearutop commented May 6, 2021

No description provided.

@github-actions
Copy link

github-actions bot commented May 6, 2021

Benchmark Result

Benchmark diff with base branch
name                                        time/op
Mux/route:/-2                                204ns ± 5%
Mux/route:/hi-2                              254ns ± 4%
Mux/route:/sup/123/and/this-2                764ns ±11%
Mux/route:/sup/123/foo/this-2               1.12µs ± 7%
Mux/route:/sharing/z/aBc-2                   198ns ±10%
Mux/route:/sharing/z/aBc/twitter-2           148ns ± 5%
Mux/route:/sharing/z/aBc/direct-2            195ns ± 7%
Mux/route:/sharing/z/aBc/direct/download-2   148ns ± 5%
TreeGet-2                                    191ns ± 7%

name                                        alloc/op
Mux/route:/-2                                89.2B ±11%
Mux/route:/hi-2                              92.4B ±10%
Mux/route:/sup/123/and/this-2                 465B ± 8%
Mux/route:/sup/123/foo/this-2                 654B ± 0%
Mux/route:/sharing/z/aBc-2                   92.2B ±10%
Mux/route:/sharing/z/aBc/twitter-2           98.8B ±12%
Mux/route:/sharing/z/aBc/direct-2            87.6B ± 8%
Mux/route:/sharing/z/aBc/direct/download-2    103B ±12%
TreeGet-2                                    0.00B     

name                                        allocs/op
Mux/route:/-2                                 0.00     
Mux/route:/hi-2                               1.00 ± 0%
Mux/route:/sup/123/and/this-2                 1.00 ± 0%
Mux/route:/sup/123/foo/this-2                 1.00 ± 0%
Mux/route:/sharing/z/aBc-2                    0.00     
Mux/route:/sharing/z/aBc/twitter-2            0.00     
Mux/route:/sharing/z/aBc/direct-2             0.00     
Mux/route:/sharing/z/aBc/direct/download-2    0.00     
TreeGet-2                                     0.00     

@github-actions
Copy link

github-actions bot commented May 6, 2021

Unit Test Coverage

total: (statements) 93.5%

Coverage diff with base branch
github.com/swaggest/fchi/chain.go	Chain	100.0%
github.com/swaggest/fchi/chain.go	Handler	100.0%
github.com/swaggest/fchi/chain.go	HandlerFunc	0.0%
github.com/swaggest/fchi/chain.go	ServeHTTP	100.0%
github.com/swaggest/fchi/chain.go	chain	100.0%
github.com/swaggest/fchi/chi.go	NewRouter	100.0%
github.com/swaggest/fchi/chi.go	ServeHTTP	100.0%
github.com/swaggest/fchi/chi.go	RequestHandler	100.0%
github.com/swaggest/fchi/chi.go	Adapt	0.0%
github.com/swaggest/fchi/context.go	URLParam	66.7%
github.com/swaggest/fchi/context.go	URLParamFromCtx	66.7%
github.com/swaggest/fchi/context.go	RouteContext	100.0%
github.com/swaggest/fchi/context.go	NewRouteContext	100.0%
github.com/swaggest/fchi/context.go	Reset	100.0%
github.com/swaggest/fchi/context.go	URLParam	100.0%
github.com/swaggest/fchi/context.go	RoutePattern	100.0%
github.com/swaggest/fchi/context.go	replaceWildcards	100.0%
github.com/swaggest/fchi/context.go	Add	100.0%
github.com/swaggest/fchi/mux.go	NewMux	100.0%
github.com/swaggest/fchi/mux.go	ServeHTTP	100.0%
github.com/swaggest/fchi/mux.go	Use	100.0%
github.com/swaggest/fchi/mux.go	Handle	100.0%
github.com/swaggest/fchi/mux.go	Method	75.0%
github.com/swaggest/fchi/mux.go	Connect	0.0%
github.com/swaggest/fchi/mux.go	Delete	100.0%
github.com/swaggest/fchi/mux.go	Get	100.0%
github.com/swaggest/fchi/mux.go	Head	100.0%
github.com/swaggest/fchi/mux.go	Options	0.0%
github.com/swaggest/fchi/mux.go	Patch	0.0%
github.com/swaggest/fchi/mux.go	Post	100.0%
github.com/swaggest/fchi/mux.go	Put	0.0%
github.com/swaggest/fchi/mux.go	Trace	0.0%
github.com/swaggest/fchi/mux.go	NotFound	100.0%
github.com/swaggest/fchi/mux.go	MethodNotAllowed	50.0%
github.com/swaggest/fchi/mux.go	With	100.0%
github.com/swaggest/fchi/mux.go	Group	100.0%
github.com/swaggest/fchi/mux.go	Route	83.3%
github.com/swaggest/fchi/mux.go	Mount	96.3%
github.com/swaggest/fchi/mux.go	Routes	100.0%
github.com/swaggest/fchi/mux.go	Middlewares	100.0%
github.com/swaggest/fchi/mux.go	Match	87.5%
github.com/swaggest/fchi/mux.go	NotFoundHandler	100.0%
github.com/swaggest/fchi/mux.go	MethodNotAllowedHandler	100.0%
github.com/swaggest/fchi/mux.go	handle	90.0%
github.com/swaggest/fchi/mux.go	routeHTTP	94.4%
github.com/swaggest/fchi/mux.go	nextRoutePath	100.0%
github.com/swaggest/fchi/mux.go	updateSubRoutes	100.0%
github.com/swaggest/fchi/mux.go	updateRouteHandler	100.0%
github.com/swaggest/fchi/test_server.go	NewTestServer	81.8%
github.com/swaggest/fchi/test_server.go	Close	66.7%
github.com/swaggest/fchi/tree.go	RegisterMethod	72.7%
github.com/swaggest/fchi/tree.go	Value	100.0%
github.com/swaggest/fchi/tree.go	InsertRoute	100.0%
github.com/swaggest/fchi/tree.go	addChild	96.9%
github.com/swaggest/fchi/tree.go	replaceChild	85.7%
github.com/swaggest/fchi/tree.go	getEdge	100.0%
github.com/swaggest/fchi/tree.go	setEndpoint	100.0%
github.com/swaggest/fchi/tree.go	FindRoute	100.0%
github.com/swaggest/fchi/tree.go	findRoute	98.5%
github.com/swaggest/fchi/tree.go	findEdge	100.0%
github.com/swaggest/fchi/tree.go	isLeaf	100.0%
github.com/swaggest/fchi/tree.go	findPattern	95.2%
github.com/swaggest/fchi/tree.go	routes	96.4%
github.com/swaggest/fchi/tree.go	walk	71.4%
github.com/swaggest/fchi/tree.go	patNextSegment	97.4%
github.com/swaggest/fchi/tree.go	patParamKeys	90.9%
github.com/swaggest/fchi/tree.go	longestPrefix	100.0%
github.com/swaggest/fchi/tree.go	methodTypString	100.0%
github.com/swaggest/fchi/tree.go	Sort	100.0%
github.com/swaggest/fchi/tree.go	Len	100.0%
github.com/swaggest/fchi/tree.go	Swap	100.0%
github.com/swaggest/fchi/tree.go	Less	100.0%
github.com/swaggest/fchi/tree.go	tailSort	100.0%
github.com/swaggest/fchi/tree.go	findEdge	100.0%
github.com/swaggest/fchi/tree.go	Walk	100.0%
github.com/swaggest/fchi/tree.go	walk	84.2%
total:	(statements)	93.5%

@codecov
Copy link

codecov bot commented May 6, 2021

Codecov Report

Merging #4 (cc6172e) into master (0ff03c6) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master       #4   +/-   ##
=======================================
  Coverage   89.40%   89.40%           
=======================================
  Files           6        6           
  Lines         604      604           
=======================================
  Hits          540      540           
  Misses         41       41           
  Partials       23       23           
Flag Coverage Δ
unittests 89.40% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0ff03c6...cc6172e. Read the comment docs.

@vearutop vearutop merged commit 9eb7e75 into master May 6, 2021
@vearutop vearutop deleted the update-deps branch May 6, 2021 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants