Vaginal swab

I went for a routine obgyn visit and after telling my obgyn I was sexually active in the past, she gave me a vaginal swab. What do they test for?