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

Function Test_CheckExistsField

mapper_test.go:176–185  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

174}
175
176func Test_CheckExistsField(t *testing.T) {
177 Register(&testStruct{})
178 fieldName := "Name"
179 _, isOk := CheckExistsField(testValue.Elem(), fieldName)
180 if isOk {
181 t.Log("RunResult success:", fieldName)
182 } else {
183 t.Error("RunResult error: fieldName not exists", fieldName)
184 }
185}
186
187func BenchmarkCheckExistsField(b *testing.B) {
188 Register(&testStruct{})

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…