Extension Sample API Tests (The GNU Awk User’s Guide)
From Get docs
Previous: Extension Sample Time, Up: Extension Samples [Contents][Index]
17.7.12 API Tests
testext extension exercises parts of the extension API that are not tested by the other samples. The
extension/testext.c file contains both the C code for the extension and
awk test code inside C comments that run the tests. The testing framework extracts the
awk code and runs the tests. See the source file for more information.