The sweat test is considered the "gold standard" for diagnosing cystic fibrosis. It has a high sensitivity and specificity when performed correctly. However, borderline or intermediate results may require additional genetic testing or repeat testing to confirm the diagnosis.