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

Function TestItemContext_Get_Set

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

Source from the content-addressed store, hash-verified

21}
22
23func TestItemContext_Get_Set(t *testing.T) {
24
25 ic.Set("foo", "bar")
26 t.Log(ic.Get("foo"))
27 t.Log(ic.Exists("foo"))
28
29 t.Log(ic.Get("none"))
30 t.Log(ic.Exists("none"))
31}
32
33func TestItemContext_Get_Once(t *testing.T) {
34 ic.Set("foo", "bar")

Callers

nothing calls this directly

Calls 3

SetMethod · 0.65
GetMethod · 0.65
ExistsMethod · 0.65

Tested by

no test coverage detected