MCPcopy Create free account
hub / github.com/cel-expr/cel-go / NativeToValue

Method NativeToValue

ext/native_test.go:1634–1640  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

1632}
1633
1634func (a *recordingAdapter) NativeToValue(value any) ref.Val {
1635 if _, ok := value.(unregisteredNativeStruct); ok {
1636 a.saw = true
1637 return types.String("from-base-adapter")
1638 }
1639 return a.base.NativeToValue(value)
1640}
1641
1642func TestNativeToValueDelegatesUnregisteredStructs(t *testing.T) {
1643 custom := &recordingAdapter{base: types.DefaultTypeAdapter}

Callers

nothing calls this directly

Calls 2

StringTypeAlias · 0.92
NativeToValueMethod · 0.65

Tested by

no test coverage detected