@jsonstudio/rcc 0.89.935 → 0.89.942

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -482,6 +482,10 @@ async function main() {
482
482
  console.warn('[mock:regressions] No regression-tagged samples matched current filters; skipping mock replay.');
483
483
  return;
484
484
  }
485
+
486
+ const coverageByEntry = Object.create(null);
487
+ const coverageByProvider = Object.create(null);
488
+
485
489
  const tagCounter = Object.create(null);
486
490
  const incrementTag = (tag) => {
487
491
  if (!watchedTags.has(tag)) {
@@ -491,6 +495,12 @@ async function main() {
491
495
  };
492
496
  regressionSamples.forEach((sample) => {
493
497
  const matched = new Set();
498
+ const entry = typeof sample.entry === 'string' && sample.entry.trim().length ? sample.entry.trim() : 'unknown';
499
+ const providerId =
500
+ typeof sample.providerId === 'string' && sample.providerId.trim().length ? sample.providerId.trim() : 'unknown';
501
+ coverageByEntry[entry] = (coverageByEntry[entry] || 0) + 1;
502
+ coverageByProvider[providerId] = (coverageByProvider[providerId] || 0) + 1;
503
+
494
504
  (sample.tags || []).forEach((tag) => {
495
505
  if (watchedTags.has(tag) && !matched.has(tag)) {
496
506
  incrementTag(tag);
@@ -506,6 +516,14 @@ async function main() {
506
516
  .map((tag) => `${tag}=${tagCounter[tag] || 0}`)
507
517
  .join(', ');
508
518
  console.log(`✅ mock provider regressions passed (${regressionSamples.length} samples · ${summary})`);
519
+ const byEntry = Object.entries(coverageByEntry)
520
+ .map(([entry, count]) => `${entry}=${count}`)
521
+ .join(', ');
522
+ const byProvider = Object.entries(coverageByProvider)
523
+ .map(([pid, count]) => `${pid}=${count}`)
524
+ .join(', ');
525
+ console.log(`[mock:regressions] coverage by entry: ${byEntry}`);
526
+ console.log(`[mock:regressions] coverage by providerId: ${byProvider}`);
509
527
  }
510
528
 
511
529
  main().catch((error) => {