self-validating code
nounUK /ˌself ˈvælɪdeɪtɪŋ kəʊd/
US /ˌself ˈvælɪdeɪtɪŋ koʊd/
Code that checks itself to make sure it works right.
The self-validating code caught its own mistake before anyone else saw it.
RELATED WORDS
OTHER MEANINGS
2. Code that confirms its own data is correct before using it.
The form uses self-validating code to reject bad email addresses.
3. A program that runs its own tests when it starts up.
At launch, the self-validating code ran a quick health check.
4. Code that proves its output is right without help from a person.
Thanks to self-validating code, the report flagged its own errors.