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

added test cases for other utility classes #225

Merged
merged 3 commits into from
Apr 10, 2023

Conversation

nicleejy
Copy link

@nicleejy nicleejy commented Apr 9, 2023

Closes #159

@codecov
Copy link

codecov bot commented Apr 9, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.44 🎉

Comparison is base (e0c693a) 50.02% compared to head (052b4a3) 50.46%.

❗ Current head 052b4a3 differs from pull request most recent head 31db9d8. Consider uploading reports for the commit 31db9d8 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #225      +/-   ##
============================================
+ Coverage     50.02%   50.46%   +0.44%     
- Complexity      526      531       +5     
============================================
  Files           109      109              
  Lines          2483     2483              
  Branches        266      266              
============================================
+ Hits           1242     1253      +11     
+ Misses         1126     1115      -11     
  Partials        115      115              
Impacted Files Coverage Δ
...c/main/java/fasttrack/logic/parser/ParserUtil.java 84.05% <0.00%> (+7.24%) ⬆️
src/main/java/fasttrack/ui/CategoryListPanel.java 0.00% <ø> (ø)

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines +70 to +79
@Test
public void parseCategoryWithSummary_validInput_success() throws ParseException {
// leading and trailing whitespace
assertEquals(new UserDefinedCategory("category", "abc"), ParserUtil.parseCategory(" category ", "abc"));
// miscellaneous category
assertEquals(new MiscellaneousCategory(), ParserUtil.parseCategory("miscellaneous"));
UserDefinedCategory category = ParserUtil.parseCategory("food", "for dining");
assertEquals("food", category.getCategoryName());
assertEquals("for dining", category.getSummary());
}

Choose a reason for hiding this comment

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

ggwp

Copy link

@shirsho-12 shirsho-12 left a comment

Choose a reason for hiding this comment

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

LGTM

@shirsho-12 shirsho-12 merged commit cad0462 into AY2223S2-CS2103T-W09-2:master Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PE-D][Tester E] Minor Bug: Budget Utilised Percentage capped at 100%
2 participants