def main(*wanted): 
    if "runTest" in wanted or "--t" in wanted:
        return runTests()
    return sum(consume_stdin(partial(rndrObs, wanted)))
示例#2
0
 def determineHandler(goodFiles):
     if goodFiles:
         return testCaseFile(goodFiles, cleanArty(switchedArgs))
     return consume_stdin(beginCatalog(**cleanArty(switchedArgs)))
示例#3
0
def consumeWith(mosherFunc):
    return sum(filter(None,consume_stdin(mosherFunc)),[])