MCPcopy Index your code
hub / github.com/ccxt/ccxt / add_padding

Method add_padding

python/ccxt/test/tests_async.py:180–188  ·  view source on GitHub ↗
(self, message, size)

Source from the content-addressed store, hash-verified

178 self.checked_public_tests = {}
179
180 def add_padding(self, message, size):
181 # has to be transpilable
182 res = ''
183 message_length = len(message) # avoid php transpilation issue
184 missing_space = size - message_length - 0 # - 0 is added just to trick transpile to treat the .length as a string for php
185 if missing_space > 0:
186 for i in range(0, missing_space):
187 res += ' '
188 return message + res
189
190 async def test_method(self, method_name, exchange, args, is_public):
191 # todo: temporary skip for c#

Callers 3

init_innerMethod · 0.95
test_methodMethod · 0.95
run_testsMethod · 0.95

Calls 1

rangeFunction · 0.50

Tested by

no test coverage detected