MCPcopy
hub / github.com/github/gh-ost / TestString

Function TestString

go/base/load_map_test.go:46–58  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

44}
45
46func TestString(t *testing.T) {
47 {
48 m, _ := ParseLoadMap("")
49 s := m.String()
50 require.Equal(t, "", s)
51 }
52 {
53 loadList := "threads_running=20,threads_connected=10"
54 m, _ := ParseLoadMap(loadList)
55 s := m.String()
56 require.Equal(t, "threads_connected=10,threads_running=20", s)
57 }
58}

Callers

nothing calls this directly

Calls 2

ParseLoadMapFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…