MCPcopy
hub / github.com/borgbackup/borg / getattr_setattr

Function getattr_setattr

src/borg/testsuite/benchmark_test.py:122–126  ·  view source on GitHub ↗
(item, key, value)

Source from the content-addressed store, hash-verified

120 propdict = type()
121
122 def getattr_setattr(item, key, value):
123 setattr(item, key, value)
124 assert item.get(key) == value
125 assert getattr(item, key) == value
126 item.as_dict()
127
128 benchmark(getattr_setattr, propdict, key, value)

Callers

nothing calls this directly

Calls 2

as_dictMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected