(t *testing.T)
| 400 | } |
| 401 | |
| 402 | func TestSelectNil(t *testing.T) { |
| 403 | expr := nilTestExpr(t) |
| 404 | sel := expr.AsSelect() |
| 405 | if sel.FieldName() != "" { |
| 406 | t.Errorf("sel.FieldName() got %s, wanted ''", sel.FieldName()) |
| 407 | } |
| 408 | if sel.IsTestOnly() { |
| 409 | t.Error("sel.IsTestOnly() got true, wanted false") |
| 410 | } |
| 411 | if sel.Operand().Kind() != ast.UnspecifiedExprKind { |
| 412 | t.Errorf("sel.Operand() got %v, wanted unspecified", sel.Operand()) |
| 413 | } |
| 414 | } |
| 415 | |
| 416 | func TestStruct(t *testing.T) { |
| 417 | fac := ast.NewExprFactory() |
nothing calls this directly
no test coverage detected