aboutsummaryrefslogtreecommitdiff
path: root/test/unit/fixtures/multiqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/fixtures/multiqueue.c')
-rw-r--r--test/unit/fixtures/multiqueue.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/unit/fixtures/multiqueue.c b/test/unit/fixtures/multiqueue.c
new file mode 100644
index 0000000000..a8dca0a844
--- /dev/null
+++ b/test/unit/fixtures/multiqueue.c
@@ -0,0 +1,19 @@
+// This is an open source non-commercial project. Dear PVS-Studio, please check
+// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
+
+#include <string.h>
+#include <stdlib.h>
+#include "nvim/event/multiqueue.h"
+#include "multiqueue.h"
+
+
+void ut_multiqueue_put(MultiQueue *this, const char *str)
+{
+ multiqueue_put(this, NULL, 1, str);
+}
+
+const char *ut_multiqueue_get(MultiQueue *this)
+{
+ Event event = multiqueue_get(this);
+ return event.argv[0];
+}