MCPcopy Index your code
hub / github.com/nodejs/node / setup_testing

Function setup_testing

deps/v8/tools/testrunner/local/pool.py:19–31  ·  view source on GitHub ↗

For testing only: Use threading under the hood instead of multiprocessing to make coverage work.

()

Source from the content-addressed store, hash-verified

17
18
19def setup_testing():
20 """For testing only: Use threading under the hood instead of multiprocessing
21 to make coverage work.
22 """
23 global Queue
24 global Process
25 del Queue
26 del Process
27 from queue import Queue
28 from threading import Thread as Process
29 # Monkeypatch os.kill and add fake pid property on Thread.
30 os.kill = lambda *args: None
31 Process.pid = property(lambda self: None)
32
33
34class AbortException(Exception):

Callers

nothing calls this directly

Calls 1

propertyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…