prasadtalasila / BITS-Darshini

A Modular, Concurrent and Customizable Protocol Analyzer
GNU General Public License v3.0
5 stars 12 forks source link

Added Unit Tests for the SaveRepository Class #176

Closed kapilkalra04 closed 6 years ago

kapilkalra04 commented 6 years ago

Description

Motivation

Checks

Notify reviewers

@prasadtalasila

codecov[bot] commented 6 years ago

Codecov Report

Merging #176 into dev will increase coverage by 1.85%. The diff coverage is 45.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #176      +/-   ##
==========================================
+ Coverage   57.57%   59.43%   +1.85%     
==========================================
  Files          47       48       +1     
  Lines        1261     1267       +6     
  Branches      103      103              
==========================================
+ Hits          726      753      +27     
+ Misses        512      487      -25     
- Partials       23       27       +4
Impacted Files Coverage Δ
...r/persistence/repository/SaveRepositoryConfig.java 0% <0%> (ø)
...nalyzer/persistence/repository/SaveRepository.java 87.75% <80%> (+51.54%) :arrow_up:
...rotocolanalyzer/analyzer/network/IPv4Analyzer.java 94.87% <0%> (-1.29%) :arrow_down:
...tocolanalyzer/analyzer/event/BucketLimitEvent.java 75% <0%> (+75%) :arrow_up:
...tocolanalyzer/analyzer/event/SaveRepoEndEvent.java 75% <0%> (+75%) :arrow_up:

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 c7c8f50...2578889. Read the comment docs.

prasadtalasila commented 6 years ago

@kapilkalra04 please resolve the. Codeclimate issues.

prasadtalasila commented 6 years ago

@kapilkalra04 please fix the code climate issues.

prasadtalasila commented 6 years ago

@adityaketkar please complete the review of this PR at the earliest. Thanks.

adityaketkar commented 6 years ago

@kapilkalra04 the coverage for SaveRepository.java is almost complete with the latest commit, but shouldn't the tests cover SaveRepositoryConfig.java? Also, there is a minor codeclimate issue that needs to be addressed.

prasadtalasila commented 6 years ago

@adityaketkar and @kapilkalra04 There is no need to write tests for config classes. The ElasticSearchConfig was different. For the usual spring config classes, we don't need tests.

kapilkalra04 commented 6 years ago

Regarding the code-climate issue, it's wrongly showing up and hence it was decided to ignore that 1 issue.