vitest-0001: coverage-v8 coverage.result.find inside merged.result.forEach -> Map<url, result> lookup. Bench: 824x at N=M=10000 coverage entries. testng-0001: DynamicGraph.toDot freeNodes.contains inside two for-each loops -> Map<T, String> color lookup via getOrDefault. Bench: 64x at N=2000. jasmine-0001: SpyRegistry.spyOnAllFunctions propertiesToSkip.indexOf inside Array.filter + .concat growth across D prototype levels -> Set.has + O(1) growth. Bench: 61x at D=10, P=300. check-0001: libcheck suite_tcase linear strcmp scan over tclst List -> parallel hashtable for O(1) lookup amortized. Bench: 117x at N=1000. Shipped as design sketch; full integration requires companion hashtable. Also ships whitepaper/outreach/test-harness-survey.md documenting 14 clean-scan frameworks across Clojure, OCaml, Haskell, Erlang, Go, F#, Julia, Shell, Lua, JS. Scope covered 61 targets across 30+ languages. UNDF IDs: 1292 (check), 1293 (jasmine), 1294 (testng), 1295 (vitest). All 12 tests pass.
18 lines
302 B
Makefile
18 lines
302 B
Makefile
# testng patch test + bench runner
|
|
|
|
PYTHON := python3
|
|
TEST_FILE := tests/test-testng-cwe407.py
|
|
BENCH_DIR := bench
|
|
|
|
.PHONY: all test bench clean
|
|
|
|
all: test bench
|
|
|
|
test:
|
|
$(PYTHON) $(TEST_FILE)
|
|
|
|
bench:
|
|
$(PYTHON) $(BENCH_DIR)/run_all.py
|
|
|
|
clean:
|
|
rm -rf tests/__pycache__ bench/__pycache__ __pycache__
|