This commit is contained in:
nuno maduro
2026-08-05 18:21:34 +01:00
parent bfd5b75677
commit 71f39366c2
5 changed files with 173 additions and 17 deletions
+13
View File
@@ -44,6 +44,8 @@ final class WatchPatterns
private bool $baselined = false;
private ?string $defaultBranch = null;
public function useDefaults(string $projectRoot): void
{
$testPath = TestSuite::getInstance()->testPath;
@@ -177,6 +179,16 @@ final class WatchPatterns
return $this->baselined;
}
public function setDefaultBranch(string $branch): void
{
$this->defaultBranch = $branch;
}
public function defaultBranch(): ?string
{
return $this->defaultBranch;
}
public function reset(): void
{
$this->patterns = [];
@@ -185,6 +197,7 @@ final class WatchPatterns
$this->locally = false;
$this->filtered = false;
$this->baselined = false;
$this->defaultBranch = null;
}
private function keyMatches(string $key, string $file): bool