syslog-ng source
test_conv.c File Reference
#include <criterion/criterion.h>
#include "libtest/fake-time.h"
#include "timeutils/unixtime.h"
#include "timeutils/wallclocktime.h"
#include "timeutils/conv.h"
Include dependency graph for test_conv.c:

Functions

 Test (conv, convert_wall_clock_time_to_unix_time)
 
 Test (conv, convert_wall_clock_time_to_unix_time_without_timezone_assumes_local_tz)
 
 Test (conv, convert_and_normalize_wall_clock_time_to_unix_time_changes_the_wct_to_normalize_values)
 
 Test (conv, unix_time_set_from_a_specific_timezone_which_happens_at_the_spring_transition_hour)
 
 Test (conv, unix_time_set_from_a_specific_timezone_which_happens_at_the_autumn_transition_hour)
 
 Test (conv, convert_wall_clock_time_to_unix_time_without_timezone_and_tz_hint_uses_the_hint)
 
 Test (conv, set_from_unixtime_sets_wct_fields_properly)
 
 Test (conv, set_from_unixtime_with_a_different_gmtoff_changes_hours_properly)
 
 Test (conv, set_from_unixtime_without_timezone_information_assumes_local_timezone)
 
 Test (conv, set_from_unixtime_with_tz_override_changes_the_timezone_to_the_overridden_value)
 
 TestSuite (conv,.init=setup,.fini=teardown)
 

Function Documentation

◆ Test() [1/10]

Test ( conv  ,
convert_and_normalize_wall_clock_time_to_unix_time_changes_the_wct_to_normalize_values   
)

◆ Test() [2/10]

Test ( conv  ,
convert_wall_clock_time_to_unix_time   
)

◆ Test() [3/10]

Test ( conv  ,
convert_wall_clock_time_to_unix_time_without_timezone_and_tz_hint_uses_the_hint   
)

◆ Test() [4/10]

Test ( conv  ,
convert_wall_clock_time_to_unix_time_without_timezone_assumes_local_tz   
)

◆ Test() [5/10]

Test ( conv  ,
set_from_unixtime_sets_wct_fields_properly   
)

◆ Test() [6/10]

Test ( conv  ,
set_from_unixtime_with_a_different_gmtoff_changes_hours_properly   
)

◆ Test() [7/10]

Test ( conv  ,
set_from_unixtime_with_tz_override_changes_the_timezone_to_the_overridden_value   
)

◆ Test() [8/10]

Test ( conv  ,
set_from_unixtime_without_timezone_information_assumes_local_timezone   
)

◆ Test() [9/10]

Test ( conv  ,
unix_time_set_from_a_specific_timezone_which_happens_at_the_autumn_transition_hour   
)

◆ Test() [10/10]

Test ( conv  ,
unix_time_set_from_a_specific_timezone_which_happens_at_the_spring_transition_hour   
)

◆ TestSuite()

TestSuite ( conv  ,
init = setup,
fini = teardown 
)