insomniacslk / irc-slack

IRC-to-Slack gateway
BSD 3-Clause "New" or "Revised" License
195 stars 19 forks source link

Simplified message event handling #151

Closed insomniacslk closed 3 years ago

insomniacslk commented 3 years ago

Now each message subtype is handled in its own switch branch. This is easier to follow and simplifies adding new subtype handlers.

Signed-off-by: Andrea Barberio insomniac@slackware.it

codecov[bot] commented 3 years ago

Codecov Report

Merging #151 (44f88ba) into master (138e953) will decrease coverage by 0.01%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #151      +/-   ##
=========================================
- Coverage    7.17%   7.15%   -0.02%     
=========================================
  Files           8       8              
  Lines         948     950       +2     
=========================================
  Hits           68      68              
- Misses        877     879       +2     
  Partials        3       3              
Flag Coverage Δ
unittest 7.15% <0.00%> (-0.02%) :arrow_down:

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

Impacted Files Coverage Δ
pkg/ircslack/event_handler.go 0.00% <0.00%> (ø)

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 138e953...44f88ba. Read the comment docs.