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

nette / assets / 14864906777

06 May 2025 04:32PM UTC coverage: 94.475%. Remained the same
14864906777

push

github

Claude
assets: added new properties

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

2 existing lines in 2 files now uncovered.

171 of 181 relevant lines covered (94.48%)

0.94 hits per line

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

83.33
/src/Assets/AudioAsset.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Nette\Assets;
6

7

8
/**
9
 * Audio asset.
10
 */
11
class AudioAsset implements Asset
12
{
13
        use LazyLoad;
14

15
        /** Duration in seconds */
16
        public readonly ?float $duration;
17

18

19
        public function __construct(
1✔
20
                public readonly string $url,
21
                public readonly ?string $mimeType = null,
22
                public readonly ?string $sourcePath = null,
23
                ?float $duration = null,
24
        ) {
25
                $this->lazyLoad(compact('duration'), fn() => $this->duration = $this->sourcePath
1✔
26
                        ? Helpers::guessMP3Duration($this->sourcePath)
1✔
27
                        : null);
1✔
28
        }
1✔
29

30

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