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

Function TestRefValueToValue_Error

cel/io_test.go:465–470  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

463}
464
465func TestRefValueToValue_Error(t *testing.T) {
466 _, err := RefValueToValue(types.NewErr("test error"))
467 if err == nil {
468 t.Error("RefValueToValue(err) should return error")
469 }
470}
471
472func TestExprValueAsAlphaProto(t *testing.T) {
473 // Exercise the ExprValueAsAlphaProto wrapper (0% coverage)

Callers

nothing calls this directly

Calls 3

NewErrFunction · 0.92
RefValueToValueFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected