Page MenuHomeDevCentral

test.c
No OneTemporary

/* -------------------------------------------------------------
RabbitMQ TCL - Unit testing
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
___ __ \_____ ___ /____ /____(_)_ /___ |/ /_ __ \
__ /_/ / __ `/_ __ \_ __ \_ /_ __/_ /|_/ /_ / / /
_ _, _// /_/ /_ /_/ / /_/ / / / /_ _ / / / / /_/ /
/_/ |_| \__,_/ /_.___//_.___//_/ \__/ /_/ /_/ \___\_\
_____________________
RabbitMQ C AMQP client library TCL wrapper ___ __/_ ____/__ /
TCL module to connect to AMQP brokers. __ / _ / __ /
_ / / /___ _ /___
(c) 2015, Nasqueron, some rights reserved. /_/ \____/ /_____/
Released under BSD-2-Clause license.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Software: RabbitMQ TCL
Author: Sébastien Santoro aka Dereckson
Filename: test.c
Created: 2015-12-12
Licence: BSD-2-Clause
------------------------------------------------------------- */
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include "test.h"
/* -------------------------------------------------------------
Test entry point
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
int main(void) {
const UnitTest tests[] = {
// netutils
unit_test(test_get_host), unit_test(test_get_port),
// strutils
unit_test(test_strpos), unit_test(test_str_replace),
// helper functions
unit_test(test_is_mq_connected),
};
return run_tests(tests);
}

File Metadata

Mime Type
text/x-c
Expires
Sat, Oct 11, 21:19 (1 d, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3064048
Default Alt Text
test.c (1 KB)

Event Timeline