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

nette / assets / 15127725418

20 May 2025 02:47AM UTC coverage: 92.574% (-0.8%) from 93.363%
15127725418

push

github

dg
assets: added new properties

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

10 existing lines in 7 files now uncovered.

187 of 202 relevant lines covered (92.57%)

0.93 hits per line

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

75.0
/src/Assets/GenericAsset.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Nette\Assets;
6

7

8
/**
9
 * Generic asset for any general file type.
10
 */
11
class GenericAsset implements Asset
12
{
13
        use LazyLoad;
14

15
        public readonly ?string $mimeType;
16

17

18
        public function __construct(
1✔
19
                public readonly string $url,
20
                ?string $mimeType = null,
21
                public readonly ?string $file = null,
22
                public readonly ?string $media = null,
23
                public readonly ?string $integrity = null,
24
        ) {
25
                $this->lazyLoad(compact('mimeType'), fn() => $this->mimeType = $this->file ? mime_content_type($this->file) : null);
1✔
26
        }
1✔
27

28

29
        public function __toString(): string
30
        {
UNCOV
31
                return $this->url;
×
32
        }
33
}
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