Skip to content

Remove deprecated PanicXXX functions from codebase#3595

Merged
melekes merged 2 commits intodevelopfrom
refactor/panics
Apr 26, 2019
Merged

Remove deprecated PanicXXX functions from codebase#3595
melekes merged 2 commits intodevelopfrom
refactor/panics

Conversation

@thanethomson
Copy link
Contributor

As per discussion over here, we need to remove these PanicXXX functions and eliminate our dependence on them. In this PR, each and every PanicXXX function call is replaced with a simple panic call.

  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG_PENDING.md

As per discussion over
[here](#3456 (comment)),
we need to remove these `PanicXXX` functions and eliminate our
dependence on them. In this PR, each and every `PanicXXX` function call
is replaced with a simple `panic` call.
@codecov-io
Copy link

codecov-io commented Apr 25, 2019

Codecov Report

Merging #3595 into develop will decrease coverage by 0.14%.
The diff coverage is 7.5%.

@@             Coverage Diff             @@
##           develop    #3595      +/-   ##
===========================================
- Coverage    64.49%   64.35%   -0.15%     
===========================================
  Files          213      213              
  Lines        17415    17448      +33     
===========================================
- Hits         11232    11228       -4     
- Misses        5265     5301      +36     
- Partials       918      919       +1
Impacted Files Coverage Δ
libs/common/errors.go 85.71% <ø> (+8.06%) ⬆️
consensus/reactor.go 72.49% <0%> (-0.48%) ⬇️
consensus/state.go 79.05% <0%> (ø) ⬆️
p2p/trust/store.go 82.55% <0%> (ø) ⬆️
p2p/switch.go 64.06% <0%> (ø) ⬆️
p2p/netaddress.go 71.26% <0%> (+0.57%) ⬆️
p2p/conn/connection.go 80.58% <0%> (ø) ⬆️
crypto/xsalsa20symmetric/symmetric.go 70.37% <0%> (ø) ⬆️
libs/db/go_level_db.go 66.46% <0%> (ø) ⬆️
libs/common/service.go 54.54% <0%> (+0.97%) ⬆️
... and 12 more

@melekes melekes merged commit 70592cc into develop Apr 26, 2019
@melekes melekes deleted the refactor/panics branch April 26, 2019 10:23
@melekes melekes mentioned this pull request May 7, 2019
36 tasks
@melekes melekes mentioned this pull request May 30, 2019
44 tasks
brapse pushed a commit to brapse/tendermint that referenced this pull request Jun 5, 2019
* Remove deprecated PanicXXX functions from codebase

As per discussion over
[here](tendermint#3456 (comment)),
we need to remove these `PanicXXX` functions and eliminate our
dependence on them. In this PR, each and every `PanicXXX` function call
is replaced with a simple `panic` call.

* add a changelog entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants