MCPcopy
hub / github.com/TomWright/dasel / TestNewMap

Function TestNewMap

model/orderedmap/map_test.go:9–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestNewMap(t *testing.T) {
10 m := orderedmap.NewMap()
11 if m.Len() != 0 {
12 t.Fatalf("expected Len 0, got %d", m.Len())
13 }
14 if len(m.Keys()) != 0 {
15 t.Fatal("expected empty keys")
16 }
17}
18
19func TestSetGet(t *testing.T) {
20 m := orderedmap.NewMap()

Callers

nothing calls this directly

Calls 3

LenMethod · 0.95
KeysMethod · 0.95
NewMapFunction · 0.92

Tested by

no test coverage detected