Skip to content

Use t.Cleanup in range_test

Gavin Hinfey requested to merge 433440-replace-cleanup-in-range_test into master

What does this MR do and why?

Replace cleanup with t.Cleanup in workhorse tests.

In many places we return a cleanup function and defer its execution in order to cleanup after tests. This MR refactors it to use T.Cleanup as it has been added to Go.

Checks (setup) -- internal/lsif_transformer/parser/ranges_test.go checkox of #433440 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

Passing workhorse tests should be sufficient.

Pulled from Replace cleanup with t.Cleanup in workhorse tests (!141855 - closed) to reduce MR size.
Related to #433440 (closed)

Edited by Gavin Hinfey

Merge request reports