(t *testing.T)
| 610 | } |
| 611 | |
| 612 | func TestContextVariableValidate(t *testing.T) { |
| 613 | ctx := NewContextVariable("") |
| 614 | err := ctx.Validate() |
| 615 | if err == nil || !strings.Contains(err.Error(), "invalid context variable") { |
| 616 | t.Errorf("ctx.Validate() got %v, wanted error 'invalid context variable'", err) |
| 617 | } |
| 618 | } |
| 619 | |
| 620 | func TestVariableGetType(t *testing.T) { |
| 621 | tests := []struct { |
nothing calls this directly
no test coverage detected