Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use App\Application\Service\QrCodeService;
|
||||
use App\Domain\QrCode\QrCode;
|
||||
use App\Domain\QrCode\Service\QrCodeEncoder;
|
||||
use App\Domain\QrCode\Service\QrCodeGenerator;
|
||||
@@ -36,9 +35,9 @@ test('End-to-End QR-Code-Generierung funktioniert', function () {
|
||||
expect($matrix->getSize())->toBe($expectedSize);
|
||||
|
||||
// Prüfe, ob Finder-Patterns vorhanden sind (3 Ecken haben spezifische Muster)
|
||||
$topLeft = $this->hasFinderPattern($matrix->getMatrix(), 0, 0);
|
||||
$topRight = $this->hasFinderPattern($matrix->getMatrix(), 0, $expectedSize - 7);
|
||||
$bottomLeft = $this->hasFinderPattern($matrix->getMatrix(), $expectedSize - 7, 0);
|
||||
$topLeft = hasFinderPattern($matrix->getMatrix(), 0, 0);
|
||||
$topRight = hasFinderPattern($matrix->getMatrix(), 0, $expectedSize - 7);
|
||||
$bottomLeft = hasFinderPattern($matrix->getMatrix(), $expectedSize - 7, 0);
|
||||
|
||||
expect($topLeft)->toBeTrue('Finder Pattern oben links fehlt');
|
||||
expect($topRight)->toBeTrue('Finder Pattern oben rechts fehlt');
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use App\Domain\QrCode\QrCode;
|
||||
use App\Domain\QrCode\Exception\QrCodeException;
|
||||
use App\Domain\QrCode\QrCode;
|
||||
use App\Domain\QrCode\Service\QrCodeEncoder;
|
||||
use App\Domain\QrCode\Service\QrCodeGenerator;
|
||||
use App\Domain\QrCode\Service\QrCodeMasker;
|
||||
@@ -22,7 +22,7 @@ test('QrCode Objekt kann erstellt werden', function () {
|
||||
});
|
||||
|
||||
test('QrCode wirft Exception bei leeren Daten', function () {
|
||||
expect(fn() => new QrCode(''))->toThrow(QrCodeException::class);
|
||||
expect(fn () => new QrCode(''))->toThrow(QrCodeException::class);
|
||||
});
|
||||
|
||||
test('QrCode withMethods erzeugen neue Instanzen', function () {
|
||||
|
||||
@@ -46,6 +46,7 @@ test('ReedSolomonEncoder kann Bytes kodieren', function () {
|
||||
for ($i = count($data); $i < count($encoded); $i++) {
|
||||
if ($encoded[$i] !== 0) {
|
||||
$allZero = false;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ test('GaloisField Arithmetik funktioniert korrekt', function () {
|
||||
expect($field->divide(6, 3))->toBe(2);
|
||||
|
||||
// Division durch Null sollte Exception werfen
|
||||
expect(fn() => $field->divide(5, 0))->toThrow(\DivisionByZeroError::class);
|
||||
expect(fn () => $field->divide(5, 0))->toThrow(\DivisionByZeroError::class);
|
||||
|
||||
// Potenzen Tests
|
||||
expect($field->power(2, 0))->toBe(1); // 2^0 = 1
|
||||
|
||||
Reference in New Issue
Block a user