]> Cypherpunks repositories - gostls13.git/commit
test: add open-coded defer tests for too many exits path
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sun, 28 Jul 2024 13:12:59 +0000 (20:12 +0700)
committerGopher Robot <gobot@golang.org>
Mon, 29 Jul 2024 14:30:07 +0000 (14:30 +0000)
commit8173a29aaa670a7b958f05a96a74933ee3ec4469
tree4e93176a0506ec60d560c3300fa34e0c180f3039
parent33b247437f871a850a778dc214245ba5d1a0c9a0
test: add open-coded defer tests for too many exits path

Add test cases that will disable open-coded defer when there are too
many exits path, even though number of defer statements are not greater
than 8.

Updates #14939
Updates #34481

Change-Id: If5af0e107ffc30043bc2902063f8c9b131a8bca4
Reviewed-on: https://go-review.googlesource.com/c/go/+/601635
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
test/defererrcheck.go