MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / test

Function test

thirdparty/keepalive/keepalive.py:624–638  ·  view source on GitHub ↗
(url, N=10)

Source from the content-addressed store, hash-verified

622
623
624def test(url, N=10):
625 print("checking error hander (do this on a non-200)")
626 try: error_handler(url)
627 except IOError as e:
628 print("exiting - exception will prevent further tests")
629 sys.exit()
630 print()
631 print("performing continuity test (making sure stuff isn't corrupted)")
632 continuity(url)
633 print()
634 print("performing speed comparison")
635 comp(N, url)
636 print()
637 print("performing dropped-connection check")
638 test_timeout(url)
639
640if __name__ == '__main__':
641 import time

Callers 1

keepalive.pyFile · 0.70

Calls 4

error_handlerFunction · 0.85
continuityFunction · 0.85
compFunction · 0.85
test_timeoutFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…