Files
neovim/test/unit/fixtures/multiqueue.c
dundargoc fd05c7f19d test: format C test files and fix clang-tidy warnings
It's probably not worth adding the C test files to regular formatting as
they're pretty much never touched, but ensuring the files are formatted
according to our standards and getting rid of warnings is a cheap
one-time fix.
2024-12-21 16:01:58 +01:00

18 lines
322 B
C

#include <stdlib.h>
#include <string.h>
#include "multiqueue.h"
#include "nvim/event/multiqueue.h"
void ut_multiqueue_put(MultiQueue *self, const char *str)
{
multiqueue_put(self, NULL, (void *)str);
}
const char *ut_multiqueue_get(MultiQueue *self)
{
Event event = multiqueue_get(self);
return event.argv[0];
}