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

Function TestRefValueToValue_Error

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

Source from the content-addressed store, hash-verified

318}
319
320func TestRefValueToValue_Error(t *testing.T) {
321 _, err := RefValueToValue(types.NewErr("test error"))
322 if err == nil {
323 t.Error("RefValueToValue(err) should return error")
324 }
325}
326
327func TestExprValueAsAlphaProto(t *testing.T) {
328 // 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