I don't always run the code in my head exactly - i do something more important, which is consider the set of possible situations the code can be in, and look for problems.
Which is why best practice is now to start with CI in production - it needs limited access to dev, and the access from development environments into it can be literally just enough to collect the latest artifact.