MCPcopy Create free account
hub / github.com/devfeel/mapper / BenchmarkCheckExistsField

Function BenchmarkCheckExistsField

mapper_test.go:187–194  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

185}
186
187func BenchmarkCheckExistsField(b *testing.B) {
188 Register(&testStruct{})
189 elem := testValue.Elem()
190 fieldName := "Name"
191 for i := 0; i < b.N; i++ {
192 CheckExistsField(elem, fieldName)
193 }
194}
195
196func Test_Mapper(t *testing.T) {
197 SetEnabledTypeChecking(true)

Callers

nothing calls this directly

Calls 2

RegisterFunction · 0.85
CheckExistsFieldFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…