Condom broke

A condom broke the first time my boyfriend and I had sex and we’re not sure how long it was broken for. We think only a minute tops because we checked every couple minutes to make sure it was still on. I went to the obgyn 5 months later to get on birth control and she gave me a vaginal swab because I’ve had sex in the past (protected with no breakage with my ex) and she was just making sure everything was good. The results were negative for everything. If I had anything the results would show right? Even if the condom was broken for only a couple seconds?