MCPcopy Create free account
hub / github.com/devfeel/dotweb / TestItemContext_Remove

Function TestItemContext_Remove

core/concurrenceMap_test.go:39–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

37}
38
39func TestItemContext_Remove(t *testing.T) {
40
41 ic.Set("foo", "bar")
42 ic.Set("foo1", "bar1")
43 t.Log(len(ic.GetCurrentMap()))
44 ic.Remove("foo")
45 t.Log(ic.GetString("foo"))
46}
47
48func TestItemContext_Current(t *testing.T) {
49 lock := &sync.Mutex{}

Callers

nothing calls this directly

Calls 4

SetMethod · 0.65
GetCurrentMapMethod · 0.65
RemoveMethod · 0.65
GetStringMethod · 0.65

Tested by

no test coverage detected