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

mborne / remote-git / 14819306259

04 May 2025 08:16AM UTC coverage: 92.828% (+12.9%) from 79.959%
14819306259

push

github

web-flow
Merge pull request #35 from mborne/34-description

add getDescription and rely on gitea.com to test GogsClient

3 of 4 new or added lines in 4 files covered. (75.0%)

453 of 488 relevant lines covered (92.83%)

3.08 hits per line

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

88.89
/src/Local/LocalProject.php
1
<?php
2

3
namespace MBO\RemoteGit\Local;
4

5
use MBO\RemoteGit\ProjectInterface;
6
use MBO\RemoteGit\ProjectVisibility;
7

8
/**
9
 * Project corresponding to a local git folder.
10
 */
11
class LocalProject implements ProjectInterface
12
{
13
    /**
14
     * @param array<string,mixed> $rawMetadata
15
     */
16
    public function __construct(private array $rawMetadata)
17
    {
18
    }
5✔
19

20
    public function getId(): string
21
    {
22
        return $this->rawMetadata['id'];
3✔
23
    }
24

25
    public function getName(): string
26
    {
27
        return $this->rawMetadata['full_name'];
3✔
28
    }
29

30
    public function getDescription(): string
31
    {
NEW
32
        return '';
×
33
    }
34

35
    public function getDefaultBranch(): ?string
36
    {
37
        return $this->rawMetadata['head_branch'];
5✔
38
    }
39

40
    public function getHttpUrl(): string
41
    {
42
        return $this->rawMetadata['full_path'];
5✔
43
    }
44

45
    public function isArchived(): bool
46
    {
47
        return false; // Always returns false for LocalClient
1✔
48
    }
49

50
    public function getVisibility(): ?ProjectVisibility
51
    {
52
        return null; // Always returns null for LocalClient
1✔
53
    }
54

55
    public function getRawMetadata(): array
56
    {
57
        return $this->rawMetadata;
3✔
58
    }
59
}
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