-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
Add parse structure for testing #6291
Conversation
rather than allowing just a single section, i was thinking it might be better to parse anything in the |
|
||
|
||
@Name("Parse Structure") | ||
@Description("Parses the code inside this structure as a structure and use 'parse logs' to grab any logs from it.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a little more explanation on how to use would be nice. What should I put in results? Do I need a code entry? etc,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very useful feature 👏
broadcast "hi" | ||
|
||
test "StructParse": | ||
assert {StructParse::parse::*} contains """oops"" cannot be set to strings" with "StructParse error not found" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It sounds cool but I really honestly cannot tell what on earth is going on in your test, I think some more explanation or documentation for the feature might help (even some javadoc would be pretty cool).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's indeed cool! He is using a nested StructParse with invalid store object "oops" that will throw an error and catching it for testing
Description
Adds a parse structure to allow testing structures for errors.
Target Minecraft Versions: any
Requirements: none
Related Issues: none