One of my V8 projects baffled me for a while.
I managed to get the car running initially, then it simply wouldn't start again.
The final result was the ECU injection control, and which I think was damaged by either water ingress due to a bad windscreen replacement, or a complete meltdown of an Alarm immobiliser which caused a lot of damage.
Whether /if the idle switch directly stops the engine from starting, I can't remember. But the output tests ran fine for me, but the injectors simply weren't being triggered.