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 a test suite to InputEvent #79444

Merged
merged 1 commit into from
Jul 21, 2023
Merged

Conversation

Miguel0312
Copy link
Contributor

@Miguel0312 Miguel0312 commented Jul 13, 2023

This PR adds the tests to InputEvent and is part of #43440.

Since InputEvent is an abstract class and cannot be instantiated, I used the subclasses relevant to each method as indicated in the docs.

A second version of these tests would consist in tests for each subclass instead of a single test suite for the abstract super class.

Copy link
Contributor

@Sauermann Sauermann left a comment

Choose a reason for hiding this comment

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

Test cases are looking good to me.

tests/core/input/test_input_event.h Outdated Show resolved Hide resolved
tests/core/input/test_input_event.h Outdated Show resolved Hide resolved
tests/core/input/test_input_event.h Outdated Show resolved Hide resolved
tests/core/input/test_input_event.h Outdated Show resolved Hide resolved
tests/core/input/test_input_event.h Outdated Show resolved Hide resolved
@Sauermann
Copy link
Contributor

The content looks good. Now please squash the two commits together.
You can find infos about how to do that in the docs: https://docs.godotengine.org/en/stable/contributing/workflow/pr_workflow.html#the-interactive-rebase

Copy link
Contributor

@Sauermann Sauermann left a comment

Choose a reason for hiding this comment

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

Changes are looking good to me

@YuriSizov YuriSizov changed the title Added a test suite to InputEvent Add a test suite to InputEvent Jul 21, 2023
@YuriSizov YuriSizov merged commit b8a29f7 into godotengine:master Jul 21, 2023
13 checks passed
@YuriSizov
Copy link
Contributor

Thanks! And congrats on your first merged Godot PR!

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.

4 participants