// Step 1936: DAPBreakpointHitDispatcher // // t1: dispatch finds active breakpoint by source+line, sets router // t2: dispatch returns dispatched=false when no breakpoint matches // t3: dispatchAll returns all matches across different nodes/languages // t4: dispatch skips inactive breakpoints // t5: dispatchAll with no matches returns empty vector #include "DAPBreakpointHitDispatcher.h" #include "ASTNodeBreakpointMapper.h" #include "DebugAdapterRouter.h" #include namespace ws = whetstone; static int p=0,f=0; #define T(n) { std::cout<<" "<<#n<<"... "; } #define P() { std::cout<<"PASS\n"; ++p; } #define F(m) { std::cout<<"FAIL: "< 0 ? 1 : 0; }