MCPcopy Create free account
hub / github.com/vercel/vercel / _coverage_active

Function _coverage_active

python/vercel-runtime/tests/test_runtime.py:52–62  ·  view source on GitHub ↗

Check if coverage collection is active in this process.

()

Source from the content-addressed store, hash-verified

50
51
52def _coverage_active() -> bool:
53 """Check if coverage collection is active in this process."""
54 try:
55 from coverage import Coverage
56
57 c = Coverage.current()
58 if c is not None:
59 return True
60 except ImportError:
61 pass
62 return "COV_CORE_DATAFILE" in os.environ
63
64
65def _base_env() -> dict[str, str]:

Callers 2

_run_runtimeFunction · 0.85
_invoke_lambdaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected