MCPcopy
hub / github.com/gin-gonic/gin / compareFunc

Function compareFunc

gin_test.go:604–610  ·  view source on GitHub ↗
(t *testing.T, a, b any)

Source from the content-addressed store, hash-verified

602}
603
604func compareFunc(t *testing.T, a, b any) {
605 sf1 := reflect.ValueOf(a)
606 sf2 := reflect.ValueOf(b)
607 if sf1.Pointer() != sf2.Pointer() {
608 t.Error("different functions")
609 }
610}
611
612func TestListOfRoutes(t *testing.T) {
613 router := New()

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected