To perform the test, a healthcare provider will collect a swab sample from the affected eye, which will then be sent to a laboratory for analysis. Prior to the test, patients should avoid touching or rubbing their eyes and should avoid wearing contact lenses, if possible.