Thank you for your inquiry. From what we gather from the question, you were asking about HIV transmission from contact of your ocular surface to someones skin. From the information given, this scenario is determined to be No risk (Transmission of HIV is not possible in the given scenario).
In order for HIV to be transmitted in this scenario, the person you hugged would have needed to have a large, open and actively bleeding wound with a significant amount of blood entering your eye. HIV needs a very controlled environment to survive and when it is exposed to air it quickly is deactivated.
Recommendation: No need for HIV test with the scenario provided, refer to a healthcare professional for other health related questions.
AIDS Vancouver Helpline/Online, Rashell
If you are satisfied with the Helpline service, please consider donating.