(t *testing.T)
| 234 | } |
| 235 | |
| 236 | func TestEval_SingleRefPassthrough(t *testing.T) { |
| 237 | resolve := mockResolver{ |
| 238 | "n1:out-0": IntVal(42), |
| 239 | } |
| 240 | |
| 241 | v, err := Eval(workflowapi.Expression{ |
| 242 | Expression: "${}", |
| 243 | DataType: workflowapi.Int, |
| 244 | References: []workflowapi.Reference{{SrcId: "n1", VarId: "out-0"}}, |
| 245 | }, resolve) |
| 246 | require.NoError(t, err) |
| 247 | assert.Equal(t, IntVal(42), v) |
| 248 | } |
| 249 | |
| 250 | func TestEval_CastInString(t *testing.T) { |
| 251 | resolve := mockResolver{ |