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

68publishers / tracy-git-version / 5982437370

26 Aug 2023 03:00AM UTC coverage: 90.041% (-2.2%) from 92.276%
5982437370

Pull #4

github

web-flow
Merge 60e13f581 into fa82db0dd
Pull Request #4: Feature/git executable

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

434 of 482 relevant lines covered (90.04%)

0.9 hits per line

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

85.71
/src/Exception/GitDirectoryException.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace SixtyEightPublishers\TracyGitVersion\Exception;
6

7
use Exception;
8
use function sprintf;
9

10
final class GitDirectoryException extends Exception implements ExceptionInterface
11
{
12
    public static function invalidWorkingDirectory(string $directory): self
13
    {
14
        return new self(sprintf(
1✔
15
            'The path %s is not valid directory.',
16
            $directory,
1✔
17
        ));
18
    }
19

20
    public static function gitDirectoryNotProvided(): self
21
    {
22
        return new self('Git directory is not provided.');
×
23
    }
24

25
    public static function invalidGitDirectory(string $directory): self
26
    {
27
        return new self(sprintf(
1✔
28
            'The path %s is not valid git directory.',
29
            $directory,
1✔
30
        ));
31
    }
32

33
    public static function gitDirectoryNotFound(string $workingDirectory): self
34
    {
35
        return new self(sprintf(
1✔
36
            'Git directory from the working directory %s not found.',
37
            $workingDirectory,
1✔
38
        ));
39
    }
40
}
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

© 2025 Coveralls, Inc