(t *testing.T)
| 448 | } |
| 449 | |
| 450 | func TestStructNil(t *testing.T) { |
| 451 | expr := nilTestExpr(t) |
| 452 | s := expr.AsStruct() |
| 453 | if s.TypeName() != "" { |
| 454 | t.Errorf("nil struct.TypeName() got %s, wanted ''", s.TypeName()) |
| 455 | } |
| 456 | if len(s.Fields()) != 0 { |
| 457 | t.Errorf("nil struct.Fields() got %d, wanted 0", s.Fields()) |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | func TestStructFieldNil(t *testing.T) { |
| 462 | fac := ast.NewExprFactory() |
nothing calls this directly
no test coverage detected