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

Function ninside

st2common/st2common/operators.py:350–355  ·  view source on GitHub ↗
(value, criteria_pattern)

Source from the content-addressed store, hash-verified

348
349
350def ninside(value, criteria_pattern):
351 if criteria_pattern is None:
352 return False
353
354 value, criteria_pattern = ensure_operators_are_strings(value, criteria_pattern)
355 return value not in criteria_pattern
356
357
358def ensure_operators_are_strings(value, criteria_pattern):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected