#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "op_parse_event.h"
Go to the source code of this file.
Data Structures | |
struct | events_test |
Functions | |
static void | do_test (struct events_test const *ev) |
int | main (void) |
Variables | |
static struct events_test const | events [] |
Definition in file parse_event_tests.c.
static void do_test | ( | struct events_test const * | ev | ) | [static] |
Definition at line 31 of file parse_event_tests.c.
References parsed_event::count, events_test::expected, parsed_event::kernel, parsed_event::name, parse_events(), events_test::tests, parsed_event::unit_mask, and parsed_event::user.
Referenced by main().
int main | ( | void | ) |
Definition at line 52 of file parse_event_tests.c.
References do_test(), and events_test::tests.
struct events_test const events[] [static] |
{ { { "FOO:3000:0:0:0", 0 }, { "FOO", 3000, 0, NULL, 0, 0, 0 } }, { { "BAR:3000", 0 }, { "BAR", 3000, 0, NULL, 1, 1, 0 } }, { { "FOOBAR:3000:1:1:1", 0 }, { "FOOBAR", 3000, 1, NULL, 1, 1, 0 } }, { { NULL, NULL }, { 0, 0, 0, NULL, 0, 0, 0 } } }
Definition at line 23 of file parse_event_tests.c.