(t *testing.T)
| 279 | } |
| 280 | |
| 281 | func TestOrderedMap_Front(t *testing.T) { |
| 282 | t.Run("NilOnEmptyMap", func(t *testing.T) { |
| 283 | m := orderedmap.NewOrderedMap() |
| 284 | assert.Nil(t, m.Front()) |
| 285 | }) |
| 286 | |
| 287 | t.Run("NilOnEmptyMap", func(t *testing.T) { |
| 288 | m := orderedmap.NewOrderedMap() |
| 289 | m.Set(1, true) |
| 290 | assert.NotNil(t, m.Front()) |
| 291 | }) |
| 292 | } |
| 293 | |
| 294 | func TestOrderedMap_Back(t *testing.T) { |
| 295 | t.Run("NilOnEmptyMap", func(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…