Home / Function/ compareFunc() — gin Function Reference

compareFunc() — gin Function Reference

Architecture documentation for the compareFunc() function in gin_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  8319344f_51a7_0885_fb3d_affd8c633546["compareFunc()"]
  6fe35aa9_e095_b4a7_de1d_c628e76fa31b["TestNoRouteWithoutGlobalHandlers()"]
  6fe35aa9_e095_b4a7_de1d_c628e76fa31b -->|calls| 8319344f_51a7_0885_fb3d_affd8c633546
  8cfdf9d1_18f5_da97_7634_d16aabb2859a["TestNoRouteWithGlobalHandlers()"]
  8cfdf9d1_18f5_da97_7634_d16aabb2859a -->|calls| 8319344f_51a7_0885_fb3d_affd8c633546
  61cac214_37e4_613d_e460_55f26d33546f["TestNoMethodWithoutGlobalHandlers()"]
  61cac214_37e4_613d_e460_55f26d33546f -->|calls| 8319344f_51a7_0885_fb3d_affd8c633546
  855d1d17_e0e8_829a_c9ca_70bcdfbf2f4e["TestRebuild404Handlers()"]
  855d1d17_e0e8_829a_c9ca_70bcdfbf2f4e -->|calls| 8319344f_51a7_0885_fb3d_affd8c633546
  a7add9d1_c744_b853_e2e2_34a6fc4e9598["TestNoMethodWithGlobalHandlers()"]
  a7add9d1_c744_b853_e2e2_34a6fc4e9598 -->|calls| 8319344f_51a7_0885_fb3d_affd8c633546
  style 8319344f_51a7_0885_fb3d_affd8c633546 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

gin_test.go lines 604–610

func compareFunc(t *testing.T, a, b any) {
	sf1 := reflect.ValueOf(a)
	sf2 := reflect.ValueOf(b)
	if sf1.Pointer() != sf2.Pointer() {
		t.Error("different functions")
	}
}

Domain

Subdomains

Frequently Asked Questions

What does compareFunc() do?
compareFunc() is a function in the gin codebase.
What calls compareFunc()?
compareFunc() is called by 5 function(s): TestNoMethodWithGlobalHandlers, TestNoMethodWithoutGlobalHandlers, TestNoRouteWithGlobalHandlers, TestNoRouteWithoutGlobalHandlers, TestRebuild404Handlers.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free