• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Freegle / Iznik / 11352

08 May 2026 03:46PM UTC coverage: 72.847% (+0.07%) from 72.775%
11352

push

circleci

CircleCI Auto-merge
Auto-merge master to production - fix(batch): update dry-run tests to match new pass-through architecture

13783 of 20750 branches covered (66.42%)

Branch coverage included in aggregate %.

937 of 1135 new or added lines in 35 files covered. (82.56%)

18 existing lines in 5 files now uncovered.

101757 of 137857 relevant lines covered (73.81%)

22.47 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

91.67
/iznik-batch/app/Console/Commands/User/UpdateModMailsCommand.php
1
<?php
2

3
namespace App\Console\Commands\User;
4

5
use App\Services\UserModMailsService;
6
use Illuminate\Console\Command;
7
use Illuminate\Support\Facades\Log;
8

9
class UpdateModMailsCommand extends Command
10
{
11
    protected $signature = 'users:update-modmails
12
                            {--dry-run : Show counts without making changes}';
13

14
    protected $description = 'Sync recent mod actions into users_modmails and prune old entries (V1: users_modmails.php)';
15

16
    public function handle(UserModMailsService $service): int
1✔
17
    {
18
        $dryRun = (bool) $this->option('dry-run');
1✔
19

20
        if ($dryRun) {
1✔
21
            $this->info('Dry run — counting changes but not writing.');
1✔
22
        }
23

24
        $inserted = $service->updateModMails($dryRun);
1✔
25
        $deleted = $service->pruneOldEntries($dryRun);
1✔
26

27
        $verb = $dryRun ? 'would insert' : 'inserted';
1✔
28
        $verb2 = $dryRun ? 'would prune' : 'pruned';
1✔
29
        $this->info("users:update-modmails — {$verb}: {$inserted}, {$verb2}: {$deleted}");
1✔
30

31
        if (!$dryRun) {
1✔
NEW
32
            Log::info('users:update-modmails complete', ['inserted' => $inserted, 'pruned' => $deleted]);
×
33
        }
34

35
        return Command::SUCCESS;
1✔
36
    }
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc