johnding1996 / HKUST-COMP3111H-Group

Group Project of COMP 3111H in Fall 2017 at HKUST
Apache License 2.0
0 stars 0 forks source link

Test/controller mock #95

Closed thomaszhouan closed 6 years ago

thomaszhouan commented 6 years ago

Add test for controller and agent

codecov[bot] commented 6 years ago

Codecov Report

Merging #95 into develop will increase coverage by 35.8%. The diff coverage is 31.7%.

Impacted file tree graph

@@             Coverage Diff              @@
##             develop     #95      +/-   ##
============================================
+ Coverage       24.7%   60.6%   +35.8%     
- Complexity       146     270     +124     
============================================
  Files             37      37              
  Lines           1378    1382       +4     
  Branches         176     176              
============================================
+ Hits             341     838     +497     
+ Misses          1008     478     -530     
- Partials          29      66      +37
Impacted Files Coverage Δ Complexity Δ
...g-chatbot/src/main/java/agent/FoodRecommender.java 69.4% <0%> (+69.4%) 20 <0> (+20) :arrow_up:
...eting-chatbot/src/main/java/agent/UserManager.java 0% <0%> (ø) 0 <0> (ø) :arrow_down:
...g-chatbot/src/main/java/agent/CampaignManager.java 0% <0%> (ø) 0 <0> (ø) :arrow_down:
...atbot/src/main/java/agent/IntentionClassifier.java 0% <0%> (ø) 0 <0> (ø) :arrow_down:
...hatbot/src/main/java/controller/DebugReceiver.java 0% <0%> (ø) 0 <0> (ø) :arrow_down:
...ieting-chatbot/src/main/java/controller/State.java 93.1% <100%> (+10.3%) 10 <0> (+3) :arrow_up:
dieting-chatbot/src/main/java/agent/MealAsker.java 75.5% <100%> (+75.5%) 17 <0> (+17) :arrow_up:
...atbot/src/main/java/misc/InitialInputRecorder.java 72.1% <100%> (+53.2%) 42 <0> (+20) :arrow_up:
...ting-chatbot/src/main/java/agent/MealRecorder.java 18.6% <100%> (+18.6%) 6 <1> (+6) :arrow_up:
...ieting-chatbot/src/main/java/agent/MenuParser.java 79.3% <60%> (+79.3%) 13 <0> (+13) :arrow_up:
... and 20 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6d4b5ed...b2f10bc. Read the comment docs.

johnding1996 commented 6 years ago

@thomaszhouan Please resolve conflicts.