MCPcopy Index your code
hub / github.com/RustPython/RustPython / assert_signals

Function assert_signals

Lib/test/test_decimal.py:85–87  ·  view source on GitHub ↗
(cls, context, attr, expected)

Source from the content-addressed store, hash-verified

83 P.FloatOperation]
84}
85def assert_signals(cls, context, attr, expected):
86 d = getattr(context, attr)
87 cls.assertTrue(all(d[s] if s in expected else not d[s] for s in d))
88
89ROUND_UP = P.ROUND_UP
90ROUND_DOWN = P.ROUND_DOWN

Callers 5

test_none_argsMethod · 0.85
test_pickleMethod · 0.85
test_default_contextMethod · 0.85
assert_restMethod · 0.85

Calls 3

getattrFunction · 0.85
allFunction · 0.85
assertTrueMethod · 0.80

Tested by

no test coverage detected