in retrieve_path_to_test/app.py [0:0]
def inflight_routes_to_test(allRoutes, currentRouteIndex, testBatchSize):
if((currentRouteIndex + testBatchSize) < len(allRoutes)):
inflightRoutesToTest = allRoutes[currentRouteIndex:(
currentRouteIndex + testBatchSize)]
currentRouteIndex += testBatchSize
isAllRoutesTested = False
else:
inflightRoutesToTest = allRoutes[currentRouteIndex:]
isAllRoutesTested = True
return {
"inflightroutetotest": {
"inflightroutes": inflightRoutesToTest,
"runningtestscount": 0
},
"currentrouteindex": currentRouteIndex,
"testbatchsize": testBatchSize,
"isallroutestested": isAllRoutesTested,
"allroutes": allRoutes,
}