Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KST: allow to generate ks-debug tests #117

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Mingun
Copy link
Contributor

@Mingun Mingun commented Apr 10, 2024

This PR adds new property debug (default false) to KST tests, which allow to enable generation with ks-debug mode. The external call of _read() in tests is automatically generated

  • make DebugSwitchUser test autogenerated
  • implement test DebugArrayUser for Construct, Lua, Nim, Perl, and Rust

@@ -82,7 +82,7 @@ class TestTranslator(options: CLIOptions) {
endian = None,
bitEndian = None,
encoding = None,
forceDebug = false,
forceDebug = debug,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to name the new property as auto-read (with default to true), but because test is created using this code, more honestly to name it debug

Mingun added 2 commits July 16, 2024 18:40
Add new parameter `debug` to a test to generate parsers and tests in debug mode
@Mingun Mingun force-pushed the kst-support-debug branch from ecaebb0 to 372fe88 Compare July 16, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant