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

Add unit tests for StyleBoxTexture #95218

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

MylesScholz
Copy link
Contributor

Contributes to Issue #43440
These unit tests verify the constructor, getters, and setters of the StyleBoxTexture class.

As a note, I excluded StyleBoxTexture::get_style_margin() because its current implementation causes a build error due to accessing a protected member of StyleBoxTexture, namely StyleBoxTexture::texture_margin. The method doesn't seem to be used anywhere, but this may be worth looking into as a separate Issue. Also, I excluded StyleBoxTexture::draw() because it interacts with another component of the engine, which seemed out-of-scope.

This is my first PR, so please let me know if there is anything I should fix or add, and I will follow-up.

@MylesScholz MylesScholz requested a review from a team as a code owner August 6, 2024 23:03
@Calinou Calinou added this to the 4.x milestone Aug 6, 2024
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Code looks good to me (aside of the suggestions I posted above).

@AThousandShips AThousandShips changed the title Adds unit tests for StyleBoxTexture Add unit tests for StyleBoxTexture Aug 7, 2024
Capitalization fix in test_style_box_texture.h

Co-authored-by: Hugo Locurcio <[email protected]>

Newline fix in test_style_box_texture.h

Co-authored-by: Hugo Locurcio <[email protected]>
@akien-mga akien-mga modified the milestones: 4.x, 4.4 Aug 27, 2024
@akien-mga akien-mga merged commit 4f02b37 into godotengine:master Aug 27, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants