mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 20:16:21 +00:00
Added missing files
This commit is contained in:
21
tests/test_command.c
Normal file
21
tests/test_command.c
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
#include <setjmp.h>
|
||||
#include <cmocka.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "xmpp/xmpp.h"
|
||||
#include "ui/ui.h"
|
||||
#include "command/command.h"
|
||||
|
||||
void cmd_rooms_shows_message_when_not_connected(void **state)
|
||||
{
|
||||
will_return(jabber_get_connection_status, JABBER_DISCONNECTED);
|
||||
expect_string(cons_show, msg, "You are not currently connected.");
|
||||
CommandHelp *help = malloc(sizeof(CommandHelp));
|
||||
|
||||
assert_true(_cmd_rooms(NULL, *help));
|
||||
|
||||
free(help);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user