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

Method checkcall

Lib/test/string_tests.py:88–91  ·  view source on GitHub ↗
(self, obj, methodname, *args)

Source from the content-addressed store, hash-verified

86
87 # call obj.method(*args) without any checks
88 def checkcall(self, obj, methodname, *args):
89 obj = self.fixtype(obj)
90 args = self.fixtype(args)
91 getattr(obj, methodname)(*args)
92
93 def test_count(self):
94 self.checkequal(3, 'aaa', 'count', 'a')

Callers 2

test_formattingMethod · 0.45
test_floatformattingMethod · 0.45

Calls 2

fixtypeMethod · 0.95
getattrFunction · 0.85

Tested by

no test coverage detected