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

Function Test_GetFieldNameWithElem

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

Source from the content-addressed store, hash-verified

159}
160
161func Test_GetFieldNameWithElem(t *testing.T) {
162 fieldName := GetFieldName(testValue.Elem(), 0)
163 if fieldName == "Name" {
164 t.Log("RunResult success:", fieldName)
165 } else {
166 t.Error("RunResult error: fieldName not match", fieldName)
167 }
168}
169
170func BenchmarkGetFieldNameWithElem(b *testing.B) {
171 for i := 0; i < b.N; i++ {

Callers

nothing calls this directly

Calls 1

GetFieldNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…