This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Controller; | |
use Cake\Controller\Controller; | |
use Closure; | |
use ReflectionFunction; | |
class AppController extends Controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Translating: imports_abs | |
[error] (run-main-0) io.kaitai.struct.precompile.ErrorInInput: imports_abs: /meta/imports/0: Unable to find 'common/vlq_base128_le' in import search paths, using: List(../../formats) | |
[error] io.kaitai.struct.precompile.ErrorInInput: imports_abs: /meta/imports/0: Unable to find 'common/vlq_base128_le' in import search paths, using: List(../../formats) | |
[error] at io.kaitai.struct.formats.JavaClassSpecs$.cached(JavaClassSpecs.scala:75) | |
[error] at io.kaitai.struct.formats.JavaClassSpecs.$anonfun$importAbsolute$1(JavaClassSpecs.scala:31) | |
[error] at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:658) | |
[error] at scala.util.Success.$anonfun$map$1(Try.scala:255) | |
[error] at scala.util.Success.map(Try.scala:213) | |
[error] at scala.concurrent.Future.$anonfun$map$1(Future.scala:292) | |
[error] at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/PythonSG.scala b/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/PythonSG.scala | |
index 327d3df0..0b64d616 100644 | |
--- a/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/PythonSG.scala | |
+++ b/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/PythonSG.scala | |
@@ -56,7 +56,9 @@ class PythonSG(spec: TestSpec, provider: ClassTypeProvider) extends BaseGenerato | |
override def nullAssert(actual: Ast.expr): Unit = { | |
val actStr = translateAct(actual) | |
- out.puts(s"self.assertIsNone($actStr)") | |
+ val attrStr = actStr.substring(actStr.lastIndexOf('.') + 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import zlib | |
import base64 | |
import string | |
import sys | |
plantuml_alphabet = ( | |
string.digits + string.ascii_uppercase + string.ascii_lowercase + "-_" | |
) | |
base64_alphabet = string.ascii_uppercase + string.ascii_lowercase + string.digits + "+/" |
OlderNewer