(t *testing.T)
| 355 | } |
| 356 | |
| 357 | func TestMapNil(t *testing.T) { |
| 358 | expr := nilTestExpr(t) |
| 359 | m := expr.AsMap() |
| 360 | if m.Size() != 0 { |
| 361 | t.Errorf("nil map.Size() got %d, wanted 0", m.Size()) |
| 362 | } |
| 363 | if len(m.Entries()) != 0 { |
| 364 | t.Errorf("nil map.Entries() got %d, wanted 0", m.Entries()) |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | func TestMapEntryNil(t *testing.T) { |
| 369 | fac := ast.NewExprFactory() |
nothing calls this directly
no test coverage detected