(t *testing.T)
| 159 | } |
| 160 | |
| 161 | func 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 | |
| 170 | func BenchmarkGetFieldNameWithElem(b *testing.B) { |
| 171 | for i := 0; i < b.N; i++ { |
nothing calls this directly
no test coverage detected
searching dependent graphs…