Просмотр исходного кода

add method to get if is combined log

tags/0.9.0
itismadness 4 лет назад
Родитель
Сommit
b151153db6
18 измененных файлов: 22 добавлений и 0 удалений
  1. +5
    -0
      src/Logchecker.php
  2. +1
    -0
      tests/LogcheckerTest.php
  3. +1
    -0
      tests/logs/eac/details/combined_1.json
  4. +1
    -0
      tests/logs/eac/details/cs_1.json
  5. +1
    -0
      tests/logs/eac/details/en_1.json
  6. +1
    -0
      tests/logs/eac/details/en_2.json
  7. +1
    -0
      tests/logs/eac/details/en_3.json
  8. +1
    -0
      tests/logs/eac/details/en_4.json
  9. +1
    -0
      tests/logs/eac/details/en_5.json
  10. +1
    -0
      tests/logs/eac/details/en_6.json
  11. +1
    -0
      tests/logs/eac/details/pl_1.json
  12. +1
    -0
      tests/logs/whipper/details/1.json
  13. +1
    -0
      tests/logs/whipper/details/4.json
  14. +1
    -0
      tests/logs/whipper/details/invalid_hash.json
  15. +1
    -0
      tests/logs/whipper/details/missing_hash.json
  16. +1
    -0
      tests/logs/xld/details/old_no_checksum.json
  17. +1
    -0
      tests/logs/xld/details/xld_perfect.json
  18. +1
    -0
      tests/logs/xld/details/xld_perfect_2.json

+ 5
- 0
src/Logchecker.php Просмотреть файл

@@ -1991,6 +1991,11 @@ class Logchecker
return $this->language;
}

public function isCombinedLog(): bool
{
return !is_null($this->Combined) && $this->Combined > 0;
}

public static function getAcceptValues(): string
{
return ".txt,.TXT,.log,.LOG";


+ 1
- 0
tests/LogcheckerTest.php Просмотреть файл

@@ -43,6 +43,7 @@ class LogcheckerTest extends TestCase
'ripper' => $logchecker->getRipper(),
'version' => $logchecker->getRipperVersion(),
'language' => $logchecker->getLanguage(),
'combined' => $logchecker->isCombinedLog(),
'score' => $logchecker->getScore(),
'checksum' => $logchecker->getChecksumState(),
'details' => $logchecker->getDetails()


+ 1
- 0
tests/logs/eac/details/combined_1.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "EAC",
"version": "0.99 prebeta 1",
"language": "en",
"combined": true,
"score": 76,
"checksum": "checksum_missing",
"details": [


+ 1
- 0
tests/logs/eac/details/cs_1.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "EAC",
"version": "0.99 prebeta 4",
"language": "cs",
"combined": false,
"score": 100,
"checksum": "checksum_missing",
"details": [


+ 1
- 0
tests/logs/eac/details/en_1.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "EAC",
"version": null,
"language": "en",
"combined": false,
"score": 59,
"checksum": "checksum_missing",
"details": [


+ 1
- 0
tests/logs/eac/details/en_2.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "EAC",
"version": "1.3",
"language": "en",
"combined": false,
"score": 100,
"checksum": "checksum_ok",
"details": []


+ 1
- 0
tests/logs/eac/details/en_3.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "EAC",
"version": "1.0 beta 3",
"language": "en",
"combined": false,
"score": 89,
"checksum": "checksum_ok",
"details": [


+ 1
- 0
tests/logs/eac/details/en_4.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "EAC",
"version": "1.0 beta 6",
"language": "en",
"combined": false,
"score": 100,
"checksum": "checksum_ok",
"details": []


+ 1
- 0
tests/logs/eac/details/en_5.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "EAC",
"version": "0.99 prebeta 5",
"language": "en",
"combined": false,
"score": 100,
"checksum": "checksum_missing",
"details": []


+ 1
- 0
tests/logs/eac/details/en_6.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "EAC",
"version": "1.0 beta 3",
"language": "en",
"combined": false,
"score": 59,
"checksum": "checksum_ok",
"details": [


+ 1
- 0
tests/logs/eac/details/pl_1.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "EAC",
"version": null,
"language": "pl",
"combined": false,
"score": 4,
"checksum": "checksum_missing",
"details": [


+ 1
- 0
tests/logs/whipper/details/1.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "whipper",
"version": "0.7.4.dev76+g57d386e",
"language": "en",
"combined": false,
"score": 100,
"checksum": "checksum_ok",
"details": []


+ 1
- 0
tests/logs/whipper/details/4.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "whipper",
"version": "0.7.3",
"language": "en",
"combined": false,
"score": 100,
"checksum": "checksum_ok",
"details": []


+ 1
- 0
tests/logs/whipper/details/invalid_hash.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "whipper",
"version": "0.7.4.dev76+g57d386e",
"language": "en",
"combined": false,
"score": 100,
"checksum": "checksum_invalid",
"details": []


+ 1
- 0
tests/logs/whipper/details/missing_hash.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "whipper",
"version": "0.7.4.dev76+g57d386e",
"language": "en",
"combined": false,
"score": 100,
"checksum": "checksum_missing",
"details": []


+ 1
- 0
tests/logs/xld/details/old_no_checksum.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "XLD",
"version": "20100711",
"language": "en",
"combined": false,
"score": 100,
"checksum": "checksum_missing",
"details": []


+ 1
- 0
tests/logs/xld/details/xld_perfect.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "XLD",
"version": "20161007",
"language": "en",
"combined": false,
"score": 100,
"checksum": "checksum_ok",
"details": []


+ 1
- 0
tests/logs/xld/details/xld_perfect_2.json Просмотреть файл

@@ -2,6 +2,7 @@
"ripper": "XLD",
"version": "20181019",
"language": "en",
"combined": false,
"score": 100,
"checksum": "checksum_ok",
"details": []


Загрузка…
Отмена
Сохранить