MCPcopy Create free account
hub / github.com/StackStorm/st2 / _test_function

Method _test_function

st2common/tests/unit/test_operators.py:573–575  ·  view source on GitHub ↗
(self, criterion_k, criterion_v, payload_lookup)

Source from the content-addressed store, hash-verified

571 )
572
573 def _test_function(self, criterion_k, criterion_v, payload_lookup):
574 op = operators.get_operator(criterion_v["type"])
575 return op(payload_lookup.get_value("item.to_value")[0], criterion_v["pattern"])
576
577 def test_search_any2any(self):
578 # true if any payload items match any criteria

Callers

nothing calls this directly

Calls 1

get_valueMethod · 0.45

Tested by

no test coverage detected