MCPcopy Index your code
hub / github.com/pyload/pyload / createURLs

Function createURLs

module/common/APIExerciser.py:14–24  ·  view source on GitHub ↗

create some urls, some may fail

()

Source from the content-addressed store, hash-verified

12from module.remote.thriftbackend.ThriftClient import ThriftClient, Destination
13
14def createURLs():
15 """ create some urls, some may fail """
16 urls = []
17 for x in range(0, randint(20, 100)):
18 name = "DEBUG_API"
19 if randint(0, 5) == 5:
20 name = "" #this link will fail
21
22 urls.append(name + "".join(sample(string.ascii_letters, randint(10, 20))))
23
24 return urls
25
26AVOID = (0,3,8)
27

Callers 1

addPackageMethod · 0.85

Calls 2

joinMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected