dhmit / gender_analysis

A toolkit for analyzing gendered language across sets of documents
BSD 3-Clause "New" or "Revised" License
11 stars 5 forks source link

Unit test 2 electric boogaloo #162

Open wilke0818 opened 3 years ago

wilke0818 commented 3 years ago

Specific testing for instance_distance.py to increase coverage.

Uses the small test files so that all of the statistics and numbers are correct/can be done by hand. Was going to extend coverage on other files, though, I wasn't sure how to calculate those values by hand.

codecov-commenter commented 3 years ago

Codecov Report

Merging #162 (217ec98) into master (910b00c) will increase coverage by 3.51%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #162      +/-   ##
==========================================
+ Coverage   60.64%   64.16%   +3.51%     
==========================================
  Files          13       13              
  Lines        1649     1649              
  Branches      436      436              
==========================================
+ Hits         1000     1058      +58     
+ Misses        575      515      -60     
- Partials       74       76       +2     
Impacted Files Coverage Δ
gender_analysis/analysis/instance_distance.py 93.47% <100.00%> (+60.86%) :arrow_up:
corpus_analysis/document.py 85.63% <0.00%> (+1.14%) :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 910b00c...217ec98. Read the comment docs.