MCPcopy Create free account
hub / github.com/apache/devlake / reflectField

Function reflectField

backend/helpers/pluginhelper/api/reflection_helper.go:25–28  ·  view source on GitHub ↗
(obj any, fieldName string)

Source from the content-addressed store, hash-verified

23)
24
25func reflectField(obj any, fieldName string) reflect.Value {
26 obj = models.UnwrapObject(obj)
27 return reflectValue(obj).FieldByName(fieldName)
28}
29
30func hasField(obj any, fieldName string) bool {
31 obj = models.UnwrapObject(obj)

Callers 4

deleteConnectionMethod · 0.85
setRawDataOriginFunction · 0.85
addScopeConfigMethod · 0.85
GetScopeAndConfigMethod · 0.85

Calls 1

reflectValueFunction · 0.85

Tested by

no test coverage detected