MCPcopy Create free account
hub / github.com/google/gapid / safeObject

Function safeObject

core/event/function.go:73–78  ·  view source on GitHub ↗
(v reflect.Value)

Source from the content-addressed store, hash-verified

71}
72
73func safeObject(v reflect.Value) interface{} {
74 if v.IsNil() {
75 return nil
76 }
77 return v.Interface()
78}
79
80func funcToHandler(ctx context.Context, f reflect.Value) Handler {
81 t, err := checkSignature(ctx, f.Type(),

Callers 1

funcToProducerFunction · 0.85

Calls 2

InterfaceMethod · 0.80
IsNilMethod · 0.45

Tested by

no test coverage detected