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

Function TestExprValueAsAlphaProto

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

Source from the content-addressed store, hash-verified

325}
326
327func TestExprValueAsAlphaProto(t *testing.T) {
328 // Exercise the ExprValueAsAlphaProto wrapper (0% coverage)
329 res, err := ExprValueAsAlphaProto(types.Int(42))
330 if err != nil {
331 t.Fatalf("ExprValueAsAlphaProto() failed: %v", err)
332 }
333 if res.GetValue() == nil {
334 t.Error("ExprValueAsAlphaProto() returned nil value")
335 }
336}
337
338func TestRefValToExprValue_Wrappers(t *testing.T) {
339 // Exercise the RefValToExprValue wrapper (0% coverage)

Callers

nothing calls this directly

Calls 4

IntTypeAlias · 0.92
ExprValueAsAlphaProtoFunction · 0.85
GetValueMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected