-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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 unit test for VisualShader #70396
Add unit test for VisualShader #70396
Conversation
You need to squash the commits as required by our pipeline (see https://docs.godotengine.org/en/latest/community/contributing/pr_workflow.html#updating-your-branch) |
cf87467
to
10fe08c
Compare
2ecc7c8
to
e85ee7e
Compare
I wonder if we can also test the |
Yeah sure. Actually I didn't tested it because it wasn't the part of VisualShader. I will make changes by today/tomorrow 👍 . |
I saw the code and I feel that |
e85ee7e
to
e9634d3
Compare
@Chaosus please review if any other changes are needed. |
e9634d3
to
c9e4d41
Compare
c9e4d41
to
f1f7b22
Compare
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.
Ok, thanks for contribution, I think it's fine now.
Thankyou very much for guiding as it was my 1st experience and was amazing 🙏 . |
I don't know, but my guess, you should try to declare the variables outside of SUBCASE labels (at the beginning of CASE). |
I was doing that before but didn't gave any ERRORS. Can it happen because I am deleting the object pointer every time in the for loop using memdelete(vsn.ptr()) ? |
Ah yes, you should not call memdelete on Ref counted objects - they would automatically free the memory when goes out of scope. |
f1f7b22
to
453ab2a
Compare
453ab2a
to
e4f4fb5
Compare
Thanks! |
part of #43440
Adds test for VisualShader class test the following
Tests are compiled and run successfully on my device