wakatime / wakatime-cli

Command line interface used by all WakaTime text editor plugins
https://wakatime.com/plugins
BSD 3-Clause "New" or "Revised" License
277 stars 41 forks source link

Improve tests #993

Closed gandarez closed 9 months ago

gandarez commented 9 months ago

This PR does some improvements in tests and also set a default value for result.Project.

codecov-commenter commented 9 months ago

Codecov Report

Merging #993 (5756dd1) into develop (63781d4) will not change coverage. The diff coverage is 100.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

@@           Coverage Diff            @@
##           develop     #993   +/-   ##
========================================
  Coverage    62.88%   62.88%           
========================================
  Files          372      372           
  Lines        15871    15871           
========================================
  Hits          9980     9980           
  Misses        5364     5364           
  Partials       527      527           
Flag Coverage Δ
unittests 62.88% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
pkg/project/file.go 75.00% <100.00%> (ø)