MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / TestEval_CastInString

Function TestEval_CastInString

go/engine/expr/expression_test.go:222–234  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

220}
221
222func TestEval_Negation(t *testing.T) {
223 resolve := mockResolver{
224 "n1:out-0": BoolVal(true),
225 }
226
227 v, err := Eval(workflowapi.Expression{
228 Expression: "!${}",
229 DataType: workflowapi.Bool,
230 References: []workflowapi.Reference{{SrcId: "n1", VarId: "out-0"}},
231 }, resolve)
232 require.NoError(t, err)
233 assert.False(t, v.AsBool())
234}
235
236func TestEval_SingleRefPassthrough(t *testing.T) {
237 resolve := mockResolver{

Callers

nothing calls this directly

Calls 3

StringValFunction · 0.85
EvalFunction · 0.85
AsStringMethod · 0.80

Tested by

no test coverage detected