(t *testing.T)
| 567 | } |
| 568 | |
| 569 | func TestSpansetExpressionErrors(t *testing.T) { |
| 570 | tests := []struct { |
| 571 | in string |
| 572 | err error |
| 573 | }{ |
| 574 | {in: "{ true } &&", err: newParseError("syntax error: unexpected $end, expecting { or (", 1, 12)}, |
| 575 | } |
| 576 | |
| 577 | for _, tc := range tests { |
| 578 | t.Run(tc.in, func(t *testing.T) { |
| 579 | _, err := Parse(tc.in) |
| 580 | |
| 581 | require.Equal(t, tc.err, err) |
| 582 | }) |
| 583 | } |
| 584 | } |
| 585 | |
| 586 | func TestSpansetExpressionPrecedence(t *testing.T) { |
| 587 | tests := []struct { |
nothing calls this directly
no test coverage detected