MCPcopy
hub / github.com/pytest-dev/pytest / assert_never

Function assert_never

src/_pytest/compat.py:286–287  ·  view source on GitHub ↗
(value: NoReturn)

Source from the content-addressed store, hash-verified

284else:
285
286 def assert_never(value: NoReturn) -> NoReturn:
287 assert False, f"Unhandled value: {value} ({type(value).__name__})"
288
289
290class CallableBool:

Callers 11

import_pathFunction · 0.90
get_scope_nodeFunction · 0.90
get_param_argkeysFunction · 0.90
addSubTestMethod · 0.90
_compare_eq_textFunction · 0.90
_getiniMethod · 0.90
test_gitignoreFunction · 0.90
test_assert_never_unionFunction · 0.90
test_assert_never_enumFunction · 0.90
_get_pygments_lexerMethod · 0.85

Calls

no outgoing calls

Tested by 5

addSubTestMethod · 0.72
test_gitignoreFunction · 0.72
test_assert_never_unionFunction · 0.72
test_assert_never_enumFunction · 0.72