For the home inspections I've been a "walkthrough witness" to, the "electrical inspection" portion involved the inspector opening the normal access door to the breaker panel levers, and plugging in one of those $5 Home Depot wiring fault detectors into a few random plugs here and there to verify no wiring faults appear.
But they do not remove the panel cover to look inside, nor do they open up any receptacle box anywhere to look at any of the wiring inside. So they wouldn't know (nor discover) if the wiring job was done well or done in a shoddy manner.
Better home inspections will remove breaker panel box or at very minimum use a thermal camera to check if the breakers are all reasonably warm. Usually both. But that still doesn’t really tell you much about whether something is done to code or not.