Skip to content

KST: allow to generate ks-debug tests#117

Open
Mingun wants to merge 2 commits intokaitai-io:masterfrom
Mingun:kst-support-debug
Open

KST: allow to generate ks-debug tests#117
Mingun wants to merge 2 commits intokaitai-io:masterfrom
Mingun:kst-support-debug

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

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