(t *testing.T)
| 847 | } |
| 848 | |
| 849 | func TestCheck_PointerNode(t *testing.T) { |
| 850 | _, err := checker.Check(&parser.Tree{Node: &ast.PointerNode{}}, nil) |
| 851 | assert.Error(t, err) |
| 852 | assert.Contains(t, err.Error(), "cannot use pointer accessor outside predicate") |
| 853 | } |
| 854 | |
| 855 | func TestCheck_TypeWeights(t *testing.T) { |
| 856 | types := map[string]any{ |