Home / Function/ Test_buildFieldInfo_Unexported() — fiber Function Reference

Test_buildFieldInfo_Unexported() — fiber Function Reference

Architecture documentation for the Test_buildFieldInfo_Unexported() function in mapping_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  ed4c69d9_aee2_b625_8149_b83df4214674["Test_buildFieldInfo_Unexported()"]
  ecb7a598_be7d_ed73_d2c3_8ca5f67838de["mapping_test.go"]
  ed4c69d9_aee2_b625_8149_b83df4214674 -->|defined in| ecb7a598_be7d_ed73_d2c3_8ca5f67838de
  style ed4c69d9_aee2_b625_8149_b83df4214674 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binder/mapping_test.go lines 563–578

func Test_buildFieldInfo_Unexported(t *testing.T) {
	t.Parallel()
	type nested struct {
		export   int
		Exported int
	}
	_ = nested{export: 0}
	type outer struct {
		Name   string
		Nested nested
	}
	info := buildFieldInfo(reflect.TypeOf(outer{}), "query")
	require.Contains(t, info.names, "name")
	_, ok := info.nestedKinds[reflect.Int]
	require.True(t, ok)
}

Domain

Subdomains

Frequently Asked Questions

What does Test_buildFieldInfo_Unexported() do?
Test_buildFieldInfo_Unexported() is a function in the fiber codebase, defined in binder/mapping_test.go.
Where is Test_buildFieldInfo_Unexported() defined?
Test_buildFieldInfo_Unexported() is defined in binder/mapping_test.go at line 563.

Analyze Your Own Codebase

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

Try Supermodel Free