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

NeoIsRecursive / inertia-tempest / 13986084906

21 Mar 2025 06:35AM UTC coverage: 96.61% (+1.3%) from 95.27%
13986084906

Pull #2

github

web-flow
Merge ab00ae0a5 into bf5c3f470
Pull Request #2: Add defer props support

92 of 93 new or added lines in 1 file covered. (98.92%)

2 existing lines in 2 files now uncovered.

171 of 177 relevant lines covered (96.61%)

11.34 hits per line

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

85.71
/src/InertiaConfig.php
1
<?php
2

3
namespace NeoIsRecursive\Inertia;
4

5
use Closure;
6
use NeoIsRecursive\Inertia\Props\AlwaysProp;
7
use NeoIsRecursive\Inertia\Props\LazyProp;
8

9
final class InertiaConfig
10
{
11

12
    public function __construct(
13
        readonly public string $rootView,
14
        /** @var class-string<InertiaVersionResolver>  */
15
        readonly public string $versionResolverClass = ManifestVersionResolver::class,
16
        /** @var array<AlwaysProp|LazyProp|string|array|Closue> */
17
        public private(set) array $sharedProps = [],
18
    ) {}
35✔
19

20
    public function flushSharedProps(): self
21
    {
22
        $this->sharedProps = [];
1✔
23

24
        return $this;
1✔
25
    }
26

27
    public function share(string|array $key, LazyProp|AlwaysProp|Closure|string|array|null $value): self
28
    {
29
        if (is_array($key)) {
2✔
UNCOV
30
            $this->sharedProps = array_merge($this->sharedProps, $key);
×
31
        } else {
32
            $this->sharedProps[$key] = $value;
2✔
33
        }
34

35
        return $this;
2✔
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