(t *testing.T)
| 438 | } |
| 439 | |
| 440 | func TestObject_IsEmpty(t *testing.T) { |
| 441 | t.Run("empty map", func(t *testing.T) { |
| 442 | reporter := newMockReporter(t) |
| 443 | |
| 444 | NewObject(reporter, map[string]interface{}{}).IsEmpty(). |
| 445 | chain.assert(t, success) |
| 446 | |
| 447 | NewObject(reporter, map[string]interface{}{}).NotEmpty(). |
| 448 | chain.assert(t, failure) |
| 449 | }) |
| 450 | |
| 451 | t.Run("one empty element", func(t *testing.T) { |
| 452 | reporter := newMockReporter(t) |
| 453 | |
| 454 | NewObject(reporter, map[string]interface{}{"": nil}).IsEmpty(). |
| 455 | chain.assert(t, failure) |
| 456 | |
| 457 | NewObject(reporter, map[string]interface{}{"": nil}).NotEmpty(). |
| 458 | chain.assert(t, success) |
| 459 | }) |
| 460 | } |
| 461 | |
| 462 | func TestObject_IsEqual(t *testing.T) { |
| 463 | t.Run("basic", func(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…