Angiostrongylus cantonensis, also known as rat lungworm, is a parasite that can infect humans when they consume undercooked or raw snails, slugs, or other animals. The worm larvae can invade the central nervous system and cause eosinophilic meningitis. To diagnose rat lungworm infection, IgM and IgG tests are used to detect antibodies against this parasite. IgG test: This test detects IgG antibodies, a type of antibody that usually appears later in the course of infection and can persist for a long time after the infection has been resolved. A positive IgG result may indicate a past or chronic infection.