(self)
| 4775 | ) |
| 4776 | |
| 4777 | def test_Function_and_Parameter_reprs(self): |
| 4778 | function = Function( |
| 4779 | name='foo', |
| 4780 | module=_make_clinic(), |
| 4781 | cls=None, |
| 4782 | c_basename=None, |
| 4783 | full_name='foofoo', |
| 4784 | return_converter=int_return_converter(), |
| 4785 | kind=FunctionKind.METHOD_INIT, |
| 4786 | coexist=False |
| 4787 | ) |
| 4788 | self.assertEqual(repr(function), "<clinic.Function 'foo'>") |
| 4789 | |
| 4790 | converter = self_converter('bar', 'bar', function) |
| 4791 | parameter = Parameter( |
| 4792 | "bar", |
| 4793 | kind=inspect.Parameter.POSITIONAL_OR_KEYWORD, |
| 4794 | function=function, |
| 4795 | converter=converter |
| 4796 | ) |
| 4797 | self.assertEqual(repr(parameter), "<clinic.Parameter 'bar'>") |
| 4798 | |
| 4799 | def test_Monitor_repr(self): |
| 4800 | monitor = libclinic.cpp.Monitor("test.c") |
nothing calls this directly
no test coverage detected