PortSwigger interview question

How do you know that AI is generating the code correctly?