Path 1: 364 calls (1.0)

View.as_view..view def (32) _async_app..index def (14) test_blueprint_prefix_slash..index def (11) _async_app..error d...

'index' (159) 'error' (10) 'view' (10) 'bp_index' (8) 'hello' (8) 'bp_error' (7) 'methodview' (7) 'do_abort' (5) 'index2' (4) 'fail' (4)

1def _endpoint_from_view_func(view_func: t.Callable) -> str:
2    """Internal helper that returns the default endpoint for a given
3    function.  This always is the function name.
4    """
5    assert view_func is not None, "expected view func if endpoint is not provided."
6    return view_func.__name__