MCPcopy Create free account
hub / github.com/cdgriffith/Box / factory

Function factory

test/test_box.py:1874–1876  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1872 calls = []
1873
1874 def factory():
1875 calls.append(None)
1876 return "generated"
1877
1878 value = Box(default_box=True, default_box_attr=factory, default_box_create_on_get=create_on_get)
1879 assert value.pop("missing", default) is default

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected