MCPcopy
hub / github.com/nbubna/store / clear

Function clear

test/store_test.js:111–115  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

109 get(key, null, s);
110 }
111 function clear(s) {
112 equal((s || store).clear(), s || store, "clear");
113 getAll({}, s);
114 equal((s || store).size(), 0, "size should be 0 after clear");
115 }
116 function clearAll(s) {
117 ok((s || store).clearAll(), "clearAll worked for "+(s||store));
118 getAll({}, s);

Callers 1

store_test.jsFile · 0.85

Calls 3

clearMethod · 0.80
sizeMethod · 0.80
getAllFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…