(t *testing.T)
| 437 | } |
| 438 | |
| 439 | func TestIntStrMap_String(t *testing.T) { |
| 440 | gtest.C(t, func(t *gtest.T) { |
| 441 | m := gmap.NewIntStrMapFrom(g.MapIntStr{ |
| 442 | 1: "v1", |
| 443 | 2: "v2", |
| 444 | 3: "v3", |
| 445 | }) |
| 446 | t.Assert(m.String(), "{\"1\":\"v1\",\"2\":\"v2\",\"3\":\"v3\"}") |
| 447 | |
| 448 | m = nil |
| 449 | t.Assert(len(m.String()), 0) |
| 450 | }) |
| 451 | } |
| 452 | |
| 453 | func Test_IntStrMap_DeepCopy(t *testing.T) { |
| 454 | gtest.C(t, func(t *gtest.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…