(t *testing.T)
| 185 | } |
| 186 | |
| 187 | func TestUnorderedData(t *testing.T) { |
| 188 | m := orderedmap.NewMap() |
| 189 | m.Set("a", 1) |
| 190 | m.Set("b", 2) |
| 191 | |
| 192 | data := m.UnorderedData() |
| 193 | if len(data) != 2 { |
| 194 | t.Fatalf("expected 2 entries, got %d", len(data)) |
| 195 | } |
| 196 | if data["a"] != 1 || data["b"] != 2 { |
| 197 | t.Fatalf("unexpected data: %v", data) |
| 198 | } |
| 199 | } |
nothing calls this directly
no test coverage detected