testc_module.c 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #include "faux/ini.h"
  2. const unsigned char testc_version_major = 1;
  3. const unsigned char testc_version_minor = 0;
  4. const char *testc_module[][2] = {
  5. // Demo
  6. // {"testc_faux_ini_bad", "INI bad"}, // demo
  7. // {"testc_faux_ini_signal", "Interrupted by signal"}, // demo
  8. // {"testc_faux_ini_good", "INI subsystem good"}, // demo
  9. // base
  10. {"testc_faux_filesize", "Get size of filesystem object"},
  11. // str
  12. {"testc_faux_str_nextword", "Find next word (quotation)"},
  13. {"testc_faux_str_getline", "Get line from string"},
  14. {"testc_faux_str_numcmp", "Numeric comparison"},
  15. {"testc_faux_str_c_esc_quote", "Escape and add quotes for string with spaces"},
  16. {"testc_faux_str_casecmpn", "String comparison with length ignoring case"},
  17. // ini
  18. {"testc_faux_ini_parse_file", "Complex test of INI file parsing"},
  19. {"testc_faux_ini_extract_subini", "Extract sub-INI from existing INI by prefix"},
  20. // argv
  21. {"testc_faux_argv_parse", "Parse string to arguments"},
  22. {"testc_faux_argv_is_continuable", "Is line continuable"},
  23. {"testc_faux_argv_index", "Get argument by index"},
  24. // time
  25. {"testc_faux_nsec_timespec_conversion", "Converts nsec from/to struct timespec"},
  26. {"testc_faux_timespec_diff", "Diff beetween timespec structures"},
  27. {"testc_faux_timespec_sum", "Sum of timespec structures"},
  28. {"testc_faux_timespec_now", "Timespec now and before now functions"},
  29. // sched
  30. {"testc_faux_sched_once", "Schedule once event. Simple and delayed ones."},
  31. {"testc_faux_sched_periodic", "Schedule periodic event."},
  32. {"testc_faux_sched_infinite", "Schedule infinite number of events."},
  33. // log
  34. {"testc_faux_log_facility_id", "Converts syslog facility string to id"},
  35. {"testc_faux_log_facility_str", "Converts syslog facility id to string"},
  36. // vec
  37. {"testc_faux_vec", "Complex test of variable length vector"},
  38. // async
  39. {"testc_faux_async_write", "Async write operations"},
  40. {"testc_faux_async_read", "Async read operations"},
  41. // buf
  42. {"testc_faux_buf", "Dynamic buffer"},
  43. {"testc_faux_buf_boundaries", "Dynamic buffer. Check boundaries case"},
  44. {"testc_faux_buf_direct", "Dynamic buffer. Direct access"},
  45. {"testc_faux_buf_dwrite_unlock0", "Dynamic buffer. Chunk removing"},
  46. {"testc_faux_buf_mass", "Massive write and read"},
  47. // End of list
  48. {NULL, NULL}
  49. };