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

tochka-developers / queue-promises / 9935584685

15 Jul 2024 07:44AM UTC coverage: 47.259% (-18.3%) from 65.524%
9935584685

push

github

darkdarin
fix: tests

4 of 4 new or added lines in 2 files covered. (100.0%)

431 existing lines in 40 files now uncovered.

612 of 1295 relevant lines covered (47.26%)

2.53 hits per line

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

0.0
/src/Models/Factories/PromiseJobFactory.php
1
<?php
2

3
namespace Tochka\Promises\Models\Factories;
4

5
use Illuminate\Database\Eloquent\Factories\Factory;
6
use Tochka\Promises\Enums\StateEnum;
7
use Tochka\Promises\Models\PromiseJob;
8
use Tochka\Promises\Tests\TestHelpers\TestJob;
9

10
/**
11
 * @template-extends Factory<PromiseJob>
12
 */
13
class PromiseJobFactory extends Factory
14
{
15
    /** @var mixed */
16
    protected $model = PromiseJob::class;
17

18
    public function definition(): array
19
    {
UNCOV
20
        return [
×
UNCOV
21
            'promise_id' => $this->faker->randomNumber(5),
×
UNCOV
22
            'state' => StateEnum::WAITING(),
×
UNCOV
23
            'conditions' => [],
×
UNCOV
24
            'initial_job' => new TestJob('initial'),
×
UNCOV
25
            'result_job' => new TestJob('result'),
×
UNCOV
26
        ];
×
27
    }
28
}
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