c-libp2p/test/test_conn.h
2017-02-13 13:26:41 -05:00

13 lines
267 B
C

#include <stdlib.h>
#include "libp2p/conn/dialer.h"
int test_dialer_new() {
struct PrivateKey* private_key = NULL;
struct Dialer* dialer = libp2p_conn_dialer_new("ABC", private_key);
if (dialer == NULL)
return 0;
libp2p_conn_dialer_free(dialer);
return 1;
}