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

Specify GameViewResolution by enum #11

Merged
merged 2 commits into from
Oct 15, 2023

Conversation

nowsprinting
Copy link
Owner

Added a new constructor to the GameViewResolutionAttribute class that takes a GameViewResolution enum as a parameter instead of width, height and a name. This simplifies the application of this attribute in the GameViewResolutionAttributeTest as you can directly pass the predefined enum value. This change aims to improve code readability and ease of use.

Added a new constructor to the GameViewResolutionAttribute class that takes a GameViewResolution enum as a parameter instead of width, height and a name. This simplifies the application of this attribute in the GameViewResolutionAttributeTest as you can directly pass the predefined enum value. This change aims to improve code readability and ease of use.
@github-actions github-actions bot added the enhancement New feature or request label Oct 15, 2023
@github-actions

This comment has been minimized.

@github-actions
Copy link

Code Metrics Report

master (49d3cc2) #11 (8a16d80) +/-
Coverage 49.7% 47.6% -2.1%
Code to Test Ratio 1:0.9 1:0.8 -0.1
Test Execution Time 4m54s 4m2s -52s
Details
  |                     | master (49d3cc2) | #11 (8a16d80) |  +/-  |
  |---------------------|------------------|---------------|-------|
- | Coverage            |            49.7% |         47.6% | -2.1% |
  |   Files             |               13 |            14 |    +1 |
  |   Lines             |              316 |           330 |   +14 |
  |   Covered           |              157 |           157 |     0 |
- | Code to Test Ratio  |            1:0.9 |         1:0.8 |  -0.1 |
  |   Code              |              572 |           614 |   +42 |
  |   Test              |              492 |           492 |     0 |
+ | Test Execution Time |            4m54s |          4m2s |  -52s |

Code coverage of files in pull request scope (16.7% → 12.5%)

Files Coverage +/-
Runtime/Attributes/GameViewResolution.cs 0.0% 0.0%
Runtime/Attributes/GameViewResolutionAttribute.cs 15.2% -1.4%

Reported by octocov

@nowsprinting nowsprinting merged commit 9168127 into master Oct 15, 2023
8 checks passed
@nowsprinting nowsprinting deleted the feature/specify_gameviewresolution_by_enum branch October 15, 2023 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant