MCPcopy Create free account
hub / github.com/elliotchance/orderedmap / TestOrderedMap_Back

Function TestOrderedMap_Back

orderedmap_test.go:294–305  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

292}
293
294func TestOrderedMap_Back(t *testing.T) {
295 t.Run("NilOnEmptyMap", func(t *testing.T) {
296 m := orderedmap.NewOrderedMap()
297 assert.Nil(t, m.Back())
298 })
299
300 t.Run("NilOnEmptyMap", func(t *testing.T) {
301 m := orderedmap.NewOrderedMap()
302 m.Set(1, true)
303 assert.NotNil(t, m.Back())
304 })
305}
306
307func TestOrderedMap_Copy(t *testing.T) {
308 t.Run("ReturnsEqualButNotSame", func(t *testing.T) {

Callers

nothing calls this directly

Calls 3

BackMethod · 0.95
SetMethod · 0.95
NewOrderedMapFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…