(t *testing.T)
| 304 | } |
| 305 | |
| 306 | func TestListNil(t *testing.T) { |
| 307 | expr := nilTestExpr(t) |
| 308 | list := expr.AsList() |
| 309 | if list.Size() != 0 { |
| 310 | t.Errorf("nil list.Size() got %d, wanted 0", list.Size()) |
| 311 | } |
| 312 | if len(list.Elements()) != 0 { |
| 313 | t.Errorf("nil list.Elements() got %d, wanted 0", list.Elements()) |
| 314 | } |
| 315 | if len(list.OptionalIndices()) != 0 { |
| 316 | t.Errorf("nil list.OptionalIndices() got %d, wanted 0", list.OptionalIndices()) |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | func TestLiteralNil(t *testing.T) { |
| 321 | expr := nilTestExpr(t) |
nothing calls this directly
no test coverage detected