You are having lung surgery. To evaluate your lungs and nearby areas, tests may be done. You may have had some of these tests. Others may be scheduled before your surgery. Your healthcare provider uses the information gathered during these tests to help plan your surgery and treatment.