The method is chosen from your data
Comparing groups against a number usually calls for one particular test — unless your data breaks that test's assumptions, in which case it needs a different one, and the difference changes the answer. That check runs every time, and what it found is reported with the result.