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
  a423cae4_a5e4_5096_1105_5638627a5c35["compareFunc()"]
  5d6e7276_feeb_b8e2_30e8_0ae0827740a5["gin_test.go"]
  a423cae4_a5e4_5096_1105_5638627a5c35 -->|defined in| 5d6e7276_feeb_b8e2_30e8_0ae0827740a5
  3474cd22_3a47_a2d8_5d99_33c2ce8e039b["TestNoRouteWithoutGlobalHandlers()"]
  3474cd22_3a47_a2d8_5d99_33c2ce8e039b -->|calls| a423cae4_a5e4_5096_1105_5638627a5c35
  dd9ef247_c4e6_951d_521b_7c989e9735bf["TestNoRouteWithGlobalHandlers()"]
  dd9ef247_c4e6_951d_521b_7c989e9735bf -->|calls| a423cae4_a5e4_5096_1105_5638627a5c35
  97e4d611_7d06_d356_6a2b_8cea02a691c7["TestNoMethodWithoutGlobalHandlers()"]
  97e4d611_7d06_d356_6a2b_8cea02a691c7 -->|calls| a423cae4_a5e4_5096_1105_5638627a5c35
  5a7973be_78e7_6ccb_6d26_4778ee868a95["TestRebuild404Handlers()"]
  5a7973be_78e7_6ccb_6d26_4778ee868a95 -->|calls| a423cae4_a5e4_5096_1105_5638627a5c35
  00385f3c_962e_a0a9_c8c0_43f785280444["TestNoMethodWithGlobalHandlers()"]
  00385f3c_962e_a0a9_c8c0_43f785280444 -->|calls| a423cae4_a5e4_5096_1105_5638627a5c35
  style a423cae4_a5e4_5096_1105_5638627a5c35 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

Defined In

Frequently Asked Questions

What does compareFunc() do?
compareFunc() is a function in the gin codebase, defined in gin_test.go.
Where is compareFunc() defined?
compareFunc() is defined in gin_test.go at line 604.
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