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

Update DG #341

Merged
merged 4 commits into from
Nov 14, 2023
Merged

Conversation

nikele2001
Copy link

No description provided.

Copy link

codecov bot commented Nov 14, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (49587de) 77.38% compared to head (fca1903) 77.70%.

Files Patch % Lines
...eedu/address/logic/parser/GatherCommandParser.java 83.33% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #341      +/-   ##
============================================
+ Coverage     77.38%   77.70%   +0.31%     
- Complexity      708      713       +5     
============================================
  Files           103      103              
  Lines          2198     2202       +4     
  Branches        224      224              
============================================
+ Hits           1701     1711      +10     
+ Misses          442      439       -3     
+ Partials         55       52       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +56 to 78

/**
* Creates a GatherCommand object for Financial Plan from {@code argString}
*/
private GatherCommand createGatherByFinancialPlan(String argString) throws ParseException {
String financialPlanArg = removePrefix(argString, PREFIX_FINANCIAL_PLAN);
validateFinancialPlan(financialPlanArg);
assert isValidFinancialPlanName(financialPlanArg) : "Prompt has to meets valid FP requirements";
GatherEmailByFinancialPlan prompt = new GatherEmailByFinancialPlan(financialPlanArg);
return new GatherCommand(prompt);
}

/**
* Creates a GatherCommand object for Tag from {@code argString}
*/
private GatherCommand createGatherByTag(String argString) throws ParseException {
String tagArg = removePrefix(argString, PREFIX_TAG);
validateTag(tagArg);
assert isValidTagName(tagArg) : "Prompt has to meets valid Tag requirements";
GatherEmailByTag prompt = new GatherEmailByTag(tagArg);
return new GatherCommand(prompt);
}
}
Copy link
Collaborator

@AlyssaPng AlyssaPng Nov 14, 2023

Choose a reason for hiding this comment

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

added by @AlyssaPng

Copy link
Collaborator

@AlyssaPng AlyssaPng left a comment

Choose a reason for hiding this comment

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

LGTM

@nikele2001 nikele2001 merged commit fb1881c into AY2324S1-CS2103T-F12-1:master Nov 14, 2023
5 checks passed
@AlyssaPng AlyssaPng added this to the v1.4 milestone Nov 14, 2023
@AlyssaPng AlyssaPng added the documentation Improvements or additions to documentation label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants