summaryrefslogtreecommitdiff
path: root/test/helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/helpers.h')
-rw-r--r--test/helpers.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/helpers.h b/test/helpers.h
index 7526d46..d0beb93 100644
--- a/test/helpers.h
+++ b/test/helpers.h
@@ -41,6 +41,12 @@ void *t_calloc(size_t nmemb, size_t size);
void t_create_file(const char *file, size_t size);
/*
+ * Helper for creating file and write @size byte buf with @pattern value in
+ * the file.
+ */
+void t_create_file_pattern(const char *file, size_t size, char pattern);
+
+/*
* Helper for creating @buf_num number of iovec
* with @buf_size bytes buffer of each iovec.
*/