MCPcopy
hub / github.com/apache/caldera / store

Method store

tests/api/v2/managers/test_base_api_manager.py:49–57  ·  view source on GitHub ↗
(self, ram)

Source from the content-addressed store, hash-verified

47 self.value = value
48
49 def store(self, ram):
50 ram_key = 'tests'
51 existing = self.retrieve(ram[ram_key], self.unique)
52 if not existing:
53 ram[ram_key].append(self)
54 return self.retrieve(ram[ram_key], self.unique)
55 existing.update('name', self.name)
56 existing.update('value', self.value)
57 return existing
58
59
60def test_find_objects(agent):

Callers 15

demo_operationFunction · 0.45
obfuscatorFunction · 0.45
test_adversaryFunction · 0.45
test_plannerFunction · 0.45
test_sourceFunction · 0.45
test_agentFunction · 0.45
test_abilityFunction · 0.45
setup_finished_operationFunction · 0.45
setup_empty_operationFunction · 0.45

Calls 2

retrieveMethod · 0.80
updateMethod · 0.80

Tested by

no test coverage detected