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

Function TestRefValToExprValue_Wrappers

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

Source from the content-addressed store, hash-verified

336}
337
338func TestRefValToExprValue_Wrappers(t *testing.T) {
339 // Exercise the RefValToExprValue wrapper (0% coverage)
340 res, err := RefValToExprValue(types.String("hello"))
341 if err != nil {
342 t.Fatalf("RefValToExprValue() failed: %v", err)
343 }
344 if res.GetValue() == nil {
345 t.Error("RefValToExprValue() returned nil value")
346 }
347}

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