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

Function TestRefValToExprValue_Wrappers

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

Source from the content-addressed store, hash-verified

481}
482
483func TestRefValToExprValue_Wrappers(t *testing.T) {
484 // Exercise the RefValToExprValue wrapper (0% coverage)
485 res, err := RefValToExprValue(types.String("hello"))
486 if err != nil {
487 t.Fatalf("RefValToExprValue() failed: %v", err)
488 }
489 if res.GetValue() == nil {
490 t.Error("RefValToExprValue() returned nil value")
491 }
492}

Callers

nothing calls this directly

Calls 4

StringTypeAlias · 0.92
RefValToExprValueFunction · 0.85
GetValueMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected