MCPcopy Create free account
hub / github.com/ccxt/ccxt / add_padding

Method add_padding

python/ccxt/test/tests_sync.py:177–185  ·  view source on GitHub ↗
(self, message, size)

Source from the content-addressed store, hash-verified

175 self.checked_public_tests = {}
176
177 def add_padding(self, message, size):
178 # has to be transpilable
179 res = ''
180 message_length = len(message) # avoid php transpilation issue
181 missing_space = size - message_length - 0 # - 0 is added just to trick transpile to treat the .length as a string for php
182 if missing_space > 0:
183 for i in range(0, missing_space):
184 res += ' '
185 return message + res
186
187 def test_method(self, method_name, exchange, args, is_public):
188 # 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