MCPcopy Index your code
hub / github.com/devfeel/mapper / BenchmarkObjectCheckExistsField

Function BenchmarkObjectCheckExistsField

mapper_object_test.go:133–141  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

131}
132
133func BenchmarkObjectCheckExistsField(b *testing.B) {
134 m := NewMapper()
135 m.Register(&testStruct{})
136 elem := testValue.Elem()
137 fieldName := "Name"
138 for i := 0; i < b.N; i++ {
139 m.CheckExistsField(elem, fieldName)
140 }
141}
142
143func Test_Object_Mapper(t *testing.T) {
144 m := NewMapper()

Callers

nothing calls this directly

Calls 3

NewMapperFunction · 0.85
RegisterMethod · 0.65
CheckExistsFieldMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…