MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <math.h>
#include <string.h>
#include <stdio.h>
#include "stub.h"
#include <libgadget/timebinmgr.h>
Go to the source code of this file.
Macros | |
#define | TIMEMAX 1.0 |
#define | TIMEIC 0.1 |
#define | OutputListLength 4 |
Functions | |
static void | test_conversions (void **state) |
static void | test_skip_first (void **state) |
static void | test_dloga (void **state) |
static int | setup (void *p1, void *p2) |
static int | teardown (void *p1, void *p2) |
int | main (void) |
Variables | |
double | outs [4] = {TIMEIC, 0.2, 0.8, TIMEMAX} |
double | logouts [4] |
#define OutputListLength 4 |
Definition at line 93 of file test_timebinmgr.c.
#define TIMEIC 0.1 |
Definition at line 15 of file test_timebinmgr.c.
#define TIMEMAX 1.0 |
Definition at line 14 of file test_timebinmgr.c.
int main | ( | void | ) |
Definition at line 115 of file test_timebinmgr.c.
References setup(), teardown(), test_conversions(), test_dloga(), and test_skip_first().
|
static |
Definition at line 96 of file test_timebinmgr.c.
References logouts, OutputListLength, outs, and set_sync_params().
Referenced by main().
|
static |
Definition at line 109 of file test_timebinmgr.c.
Referenced by main().
|
static |
this function returns the next output time after ti_curr.
Definition at line 21 of file test_timebinmgr.c.
References find_current_sync_point(), find_next_sync_point(), loga_from_ti(), logouts, setup_sync_points(), ti_from_loga(), TIMEBASE, TIMEIC, and TIMEMAX.
Referenced by main().
|
static |
Definition at line 71 of file test_timebinmgr.c.
References get_dloga_for_bin(), logouts, round_down_power_of_two(), setup_sync_points(), ti_from_loga(), TIMEBASE, TIMEBINS, TIMEIC, and TIMEMAX.
Referenced by main().
|
static |
Definition at line 62 of file test_timebinmgr.c.
References find_current_sync_point(), setup_sync_points(), TIMEIC, and TIMEMAX.
Referenced by main().
double logouts[4] |
Definition at line 17 of file test_timebinmgr.c.
Referenced by setup(), test_conversions(), and test_dloga().
Definition at line 16 of file test_timebinmgr.c.
Referenced by setup().