Anorectal manometry is a test to look at how well the muscles and nerves in the rectum and anus are working.