]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11781 [test] Add more string checks
authorChris Rienzo <chris@signalwire.com>
Sat, 13 Apr 2019 00:41:21 +0000 (20:41 -0400)
committerAndrey Volk <andywolk@gmail.com>
Tue, 9 Jul 2019 15:27:04 +0000 (19:27 +0400)
src/include/test/switch_test.h

index 31b6ce918371ef60bf9380a3add89e10c609e6ab..88491054e1e89c477ad7c996411aa6d7a5b3b975 100644 (file)
@@ -149,15 +149,35 @@ static switch_status_t fst_init_core_and_modload(const char *confdir, const char
 #define fst_check_int_equals fct_chk_eq_int
 
 /**
- * test strings for equality - continue test execution on failure
+ * test string for equality - continue test execution on failure
  */
 #define fst_check_string_equals fct_chk_eq_str
 
 /**
- * test strings for inequality - continue test execution on failure
+ * test string for inequality - continue test execution on failure
  */
 #define fst_check_string_not_equals fct_chk_neq_str
 
+/**
+ * Test string for matching prefix
+*/
+#define fst_check_string_starts_with fct_chk_startswith_str
+
+/**
+ * Test string for matching suffix
+*/
+#define fst_check_string_ends_with fct_chk_endswith_str
+
+/**
+ * Test string for substring
+ */
+#define fst_check_string_has fct_chk_incl_str
+
+/**
+ * Test string for exclusion of substring
+ */
+#define fst_check_string_does_not_have fct_chk_excl_str
+
 /**
  * Mark reference for time measure
  */