yetibot / core

:expressionless: Core yetibot utilities, extracted for shared use among Yetibot and its various plugins
https://yetibot.com
Eclipse Public License 1.0
27 stars 17 forks source link

small refactor of core/models/default-command and added tests for it #170

Closed gkspranger closed 3 years ago

gkspranger commented 3 years ago

a note about (fallback-enabled?) .. i didn't want to change the behavior of the function -- but it feels a bit "off", but nothing that has to be immediately changed .. let me explain ::

finally, codeclimate is complaining about non-idiotmatic (not (= "false" value)) .. using (not=) fixed it and passed all tests ..

all that said -- this PR is OK for what it is supposed to do -- add tests and small refactor wins where possible ..

codecov[bot] commented 3 years ago

Codecov Report

Merging #170 (6fa4584) into master (2e57e69) will increase coverage by 0.09%. The diff coverage is 57.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #170      +/-   ##
==========================================
+ Coverage   49.54%   49.63%   +0.09%     
==========================================
  Files          94       94              
  Lines        4142     4148       +6     
  Branches      197      197              
==========================================
+ Hits         2052     2059       +7     
+ Misses       1893     1892       -1     
  Partials      197      197              
Impacted Files Coverage Δ
src/yetibot/core/models/default_command.clj 70.00% <57.14%> (+20.00%) :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 2e57e69...6fa4584. Read the comment docs.