(t *testing.T)
| 553 | } |
| 554 | |
| 555 | func TestContextVariableValidate(t *testing.T) { |
| 556 | ctx := NewContextVariable("") |
| 557 | err := ctx.Validate() |
| 558 | if err == nil || !strings.Contains(err.Error(), "invalid context variable") { |
| 559 | t.Errorf("ctx.Validate() got %v, wanted error 'invalid context variable'", err) |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | func TestVariableGetType(t *testing.T) { |
| 564 | tests := []struct { |
nothing calls this directly
no test coverage detected