auto-validating code
nounUK /ˌɔːtəʊ ˈvælɪdeɪtɪŋ kəʊd/
US /ˌɔːtoʊ ˈvælɪdeɪtɪŋ koʊd/
Code that checks itself to make sure it is correct.
The auto-validating code caught the mistake before the program ran.
OTHER MEANINGS
2. Software that automatically confirms data meets set rules.
The form uses auto-validating code to reject empty fields.
3. A program that tests its own output for errors.
With auto-validating code, the report flagged its own bad numbers.
4. Code that runs built-in checks each time it starts.
The auto-validating code verified the settings on startup.