Irresistible impulse test refers to a standard for judging legal insanity which holds that a defendant is not guilty of a criminal offense if the person, by virtue of their mental state or psychological condition, was not able to resist committing the action in question.