MCPcopy
hub / github.com/gogf/gf / TestIntStrMap_String

Function TestIntStrMap_String

container/gmap/gmap_z_unit_hash_int_str_test.go:439–451  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

437}
438
439func 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
453func Test_IntStrMap_DeepCopy(t *testing.T) {
454 gtest.C(t, func(t *gtest.T) {

Callers

nothing calls this directly

Calls 4

CFunction · 0.92
NewIntStrMapFromFunction · 0.92
AssertMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…