(t *testing.T)
| 200 | } |
| 201 | |
| 202 | func TestMapKeyValues(t *testing.T) { |
| 203 | m := model.NewValue(orderedmap.NewMap().Set("a", "one").Set("b", "two")) |
| 204 | kvs, err := m.MapKeyValues() |
| 205 | if err != nil { |
| 206 | t.Fatal(err) |
| 207 | } |
| 208 | if len(kvs) != 2 { |
| 209 | t.Fatalf("expected 2 key-value pairs, got %d", len(kvs)) |
| 210 | } |
| 211 | if kvs[0].Key != "a" || kvs[1].Key != "b" { |
| 212 | t.Errorf("unexpected keys: %s, %s", kvs[0].Key, kvs[1].Key) |
| 213 | } |
| 214 | } |
nothing calls this directly
no test coverage detected