Path 1: 5 calls (1.0)

None (3) 'boolean' (2)

Blueprint.app_template_test..decorator def (5)

1@setupmethod
2    def app_template_test(
3        self, name: str | None = None
4    ) -> t.Callable[[T_template_test], T_template_test]:
5        """Register a template test, available in any template rendered by the
6        application. Equivalent to :meth:`.Flask.template_test`.
7
8        .. versionadded:: 0.10
9
10        :param name: the optional name of the test, otherwise the
11                     function name will be used.
12        """
13
14        def decorator(f: T_template_test) -> T_template_test:
15            self.add_app_template_test(f, name=name)
16            return f
17
18        return decorator