There are actual problems with how tests are used, so let’s look at the omitted aspects of testing.
To get a sense at what I'm aiming at you can check how huge successful systems try to survive, see:
Oracle Database 12.2 – 25 million lines of C code.