aboutsummaryrefslogtreecommitdiffstats
path: root/defererr_test.go
diff options
context:
space:
mode:
authorTeddy Wing2023-05-21 14:26:03 +0200
committerTeddy Wing2023-05-21 14:26:03 +0200
commitcd02ebfb98de7c6cb7a48c1a802233c727c8e8a0 (patch)
tree702e3c931669ecb3ad985dfd7da440a111ed0744 /defererr_test.go
parent2fba3d707aee35914734808c3db2ac3b0cb74c95 (diff)
downloadgodefererr-cd02ebfb98de7c6cb7a48c1a802233c727c8e8a0.tar.bz2
Try to store the end position of the first defer closure with error
The idea is to store the end position of the first defer closure that assigns an error variable from the outer scope. Then, we can check the `return` statements in the rest of the function after that position to ensure they use the error variable.
Diffstat (limited to 'defererr_test.go')
0 files changed, 0 insertions, 0 deletions