// Step 1914: LSPDiagnosticsAggregator // Collects Diagnostic records from multiple language server sources; merges by URI. // // t1: set and get from one source // t2: get merges diagnostics from two sources for the same URI // t3: clearSource removes one source without affecting others // t4: errorCount counts severity==1 only // t5: urisWithDiagnostics lists all affected URIs deduplicated #include "LSPDiagnosticsAggregator.h" #include #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; }