Browse Source

add method to get if is combined log

tags/0.9.0
itismadness 4 years ago
parent
commit
b151153db6
18 changed files with 22 additions and 0 deletions
  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 View File

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


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

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


+ 1
- 0
tests/LogcheckerTest.php View File

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


+ 1
- 0
tests/logs/eac/details/combined_1.json View File

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


+ 1
- 0
tests/logs/eac/details/cs_1.json View File

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


+ 1
- 0
tests/logs/eac/details/en_1.json View File

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


+ 1
- 0
tests/logs/eac/details/en_2.json View File

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


+ 1
- 0
tests/logs/eac/details/en_3.json View File

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


+ 1
- 0
tests/logs/eac/details/en_4.json View File

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


+ 1
- 0
tests/logs/eac/details/en_5.json View File

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


+ 1
- 0
tests/logs/eac/details/en_6.json View File

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


+ 1
- 0
tests/logs/eac/details/pl_1.json View File

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


+ 1
- 0
tests/logs/whipper/details/1.json View File

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


+ 1
- 0
tests/logs/whipper/details/4.json View File

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


+ 1
- 0
tests/logs/whipper/details/invalid_hash.json View File

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


+ 1
- 0
tests/logs/whipper/details/missing_hash.json View File

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


+ 1
- 0
tests/logs/xld/details/old_no_checksum.json View File

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


+ 1
- 0
tests/logs/xld/details/xld_perfect.json View File

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


+ 1
- 0
tests/logs/xld/details/xld_perfect_2.json View File

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


Loading…
Cancel
Save