Wouldn’t the state emissions system throw an error if a vehicle’s O2 sensor was reading 0/null?
The state testing in most states now is ‘make sure the ECU is reporting “READY” and has no emissions-related codes set.’
Since the advent of OBD2, it’s become rare for a state inspection to run the vehicle live for the purpose of emissions testing. Plugging in the OBD2 scanner is way faster, cheaper, more convenient, safer, and easier (albeit slightly) on the car than using a dyno.