MCPcopy Index your code
hub / github.com/labstack/echo / TestRoutes_Clone

Function TestRoutes_Clone

route_test.go:196–206  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

194}
195
196func TestRoutes_Clone(t *testing.T) {
197 org := exampleRoutes()
198 cloned := org.Clone()
199
200 assert.Equal(t, org, cloned)
201
202 org[1].Path = "r1"
203 org[1].Parameters[0] = "p0"
204
205 assert.NotEqual(t, org, cloned)
206}
207
208func TestRoutes_FindByMethodPath(t *testing.T) {
209 var testCases = []struct {

Callers

nothing calls this directly

Calls 2

exampleRoutesFunction · 0.85
CloneMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…