(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestIssue830(t *testing.T) { |
| 12 | program, err := expr.Compile("varNotExist", expr.AllowUndefinedVariables(), expr.AsBool()) |
| 13 | require.NoError(t, err) |
| 14 | |
| 15 | output, err := expr.Run(program, map[string]interface{}{}) |
| 16 | require.NoError(t, err) |
| 17 | |
| 18 | // The user expects output to be false (bool), but gets nil. |
| 19 | assert.Equal(t, false, output) |
| 20 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…