The floater test is used to determine whether joint effusion occurs during knee injury and to diagnose the degree of knee injury.