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

fractalzombie / frzb-metrics-power / 8448666183

27 Mar 2024 08:20AM UTC coverage: 57.143% (-3.1%) from 60.279%
8448666183

push

github

fractalzombie
[MetricsPower] Added unit and feature tests

20 of 28 new or added lines in 12 files covered. (71.43%)

15 existing lines in 6 files now uncovered.

156 of 273 relevant lines covered (57.14%)

4.32 hits per line

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

0.0
/EventListener/Sentry/OnWorkerMessageHandledEventListener.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
7
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
9
 *
10
 * Copyright (c) 2024 Mykhailo Shtanko fractalzombie@gmail.com
11
 *
12
 * For the full copyright and license information, please view the LICENSE.MD
13
 * file that was distributed with this source code.
14
 */
15

16
namespace FRZB\Component\MetricsPower\EventListener\Sentry;
17

18
use FRZB\Component\MetricsPower\Enum\ListenerPriority;
19
use Sentry\State\HubInterface;
20
use Symfony\Component\EventDispatcher\Attribute\AsEventListener;
21
use Symfony\Component\Messenger\Event\WorkerMessageHandledEvent;
22

23
#[AsEventListener(WorkerMessageHandledEvent::class, priority: ListenerPriority::HIGHEST)]
24
class OnWorkerMessageHandledEventListener
25
{
26
    public function __construct(
27
        private readonly HubInterface $hub,
UNCOV
28
    ) {}
×
29

30
    public function __invoke(WorkerMessageHandledEvent $event): void
31
    {
UNCOV
32
        $this->hub->getClient()?->flush();
×
33
    }
34
}
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