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

Function TestOrderedMap_Front

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

Source from the content-addressed store, hash-verified

279}
280
281func 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
294func TestOrderedMap_Back(t *testing.T) {
295 t.Run("NilOnEmptyMap", func(t *testing.T) {

Callers

nothing calls this directly

Calls 3

FrontMethod · 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…