#include <criterion/criterion.h>#include "libtest/stopwatch.h"#include "libtest/fake-time.h"#include "timeutils/scan-timestamp.h"#include "timeutils/cache.h"#include "timeutils/format.h"#include "timeutils/conv.h"#include "apphook.h"
Macros | |
| #define | _expect_rfc3164_timestamp_eq(ts, expected) |
| #define | _expect_rfc3164_timestamp_len_eq(ts, len, expected) |
| #define | _expect_rfc3164_fails(ts, len) |
| #define | _expect_rfc5424_timestamp_eq(ts, expected) |
| #define | _expect_rfc5424_timestamp_len_eq(ts, len, expected) |
| #define | _expect_rfc5424_fails(ts, len) |
Functions | |
| Test (parse_timestamp, standard_bsd_format) | |
| Test (parse_timestamp, bsd_extensions) | |
| Test (parse_timestamp, bsd_invalid) | |
| Test (parse_timestamp, accept_iso_timestamps_with_space) | |
| Test (parse_timestamp, standard_bsd_format_year_in_the_future) | |
| Test (parse_timestamp, standard_bsd_format_year_in_the_past) | |
| Test (parse_timestamp, non_zero_terminated_rfc3164_iso_input_is_handled_properly) | |
| Test (parse_timestamp, non_zero_terminated_rfc3164_bsd_pix_or_asa_input_is_handled_properly) | |
| Test (parse_timestamp, non_zero_terminated_rfc5424_input_is_handled_properly) | |
| Test (parse_timestamp, non_zero_terminated_rfc5424_timestamp_only) | |
| Test (parse_timestamp, daylight_saving_behavior_at_spring_with_explicit_timezones) | |
| Test (parse_timestamp, daylight_saving_behavior_at_spring_without_timezones) | |
| Test (parse_timestamp, daylight_saving_detection_at_autumn_with_timezones) | |
| Test (parse_timestamp, daylight_saving_detection_at_autumn_without_timezones) | |
| Test (parse_timestamp, cisco_timestamps) | |
| Test (parse_timestamp, rfc5424_timestamps) | |
| Test (parse_timestamp, rfc3164_performance) | |
| Test (parse_timestamp, rfc5424_performance) | |
| Test (scan_month_abbrev, valid_months) | |
| Test (scan_month_abbrev, invalid_month_names) | |
| Test (scan_day_abbrev, valid_days) | |
| Test (scan_day_abbrev, invalid_day_names) | |
| void | setup (void) |
| void | teardown (void) |
| TestSuite (parse_timestamp,.init=setup,.fini=teardown) | |
| #define _expect_rfc3164_fails | ( | ts, | |
| len | |||
| ) |
| #define _expect_rfc3164_timestamp_eq | ( | ts, | |
| expected | |||
| ) |
| #define _expect_rfc3164_timestamp_len_eq | ( | ts, | |
| len, | |||
| expected | |||
| ) |
| #define _expect_rfc5424_fails | ( | ts, | |
| len | |||
| ) |
| #define _expect_rfc5424_timestamp_eq | ( | ts, | |
| expected | |||
| ) |
| #define _expect_rfc5424_timestamp_len_eq | ( | ts, | |
| len, | |||
| expected | |||
| ) |
| void setup | ( | void | ) |
| void teardown | ( | void | ) |
| Test | ( | parse_timestamp | , |
| accept_iso_timestamps_with_space | |||
| ) |
| Test | ( | parse_timestamp | , |
| bsd_extensions | |||
| ) |
| Test | ( | parse_timestamp | , |
| bsd_invalid | |||
| ) |
| Test | ( | parse_timestamp | , |
| cisco_timestamps | |||
| ) |
| Test | ( | parse_timestamp | , |
| daylight_saving_behavior_at_spring_with_explicit_timezones | |||
| ) |
| Test | ( | parse_timestamp | , |
| daylight_saving_behavior_at_spring_without_timezones | |||
| ) |
| Test | ( | parse_timestamp | , |
| daylight_saving_detection_at_autumn_with_timezones | |||
| ) |
| Test | ( | parse_timestamp | , |
| daylight_saving_detection_at_autumn_without_timezones | |||
| ) |
| Test | ( | parse_timestamp | , |
| non_zero_terminated_rfc3164_bsd_pix_or_asa_input_is_handled_properly | |||
| ) |
| Test | ( | parse_timestamp | , |
| non_zero_terminated_rfc3164_iso_input_is_handled_properly | |||
| ) |
| Test | ( | parse_timestamp | , |
| non_zero_terminated_rfc5424_input_is_handled_properly | |||
| ) |
| Test | ( | parse_timestamp | , |
| non_zero_terminated_rfc5424_timestamp_only | |||
| ) |
| Test | ( | parse_timestamp | , |
| rfc3164_performance | |||
| ) |
| Test | ( | parse_timestamp | , |
| rfc5424_performance | |||
| ) |
| Test | ( | parse_timestamp | , |
| rfc5424_timestamps | |||
| ) |
| Test | ( | parse_timestamp | , |
| standard_bsd_format | |||
| ) |
| Test | ( | parse_timestamp | , |
| standard_bsd_format_year_in_the_future | |||
| ) |
| Test | ( | parse_timestamp | , |
| standard_bsd_format_year_in_the_past | |||
| ) |
| Test | ( | scan_day_abbrev | , |
| invalid_day_names | |||
| ) |
| Test | ( | scan_day_abbrev | , |
| valid_days | |||
| ) |
| Test | ( | scan_month_abbrev | , |
| invalid_month_names | |||
| ) |
| Test | ( | scan_month_abbrev | , |
| valid_months | |||
| ) |