syslog-ng source
test_file_writer.c File Reference
#include <criterion/criterion.h>
#include "libtest/cr_template.h"
#include "libtest/mock-transport.h"
#include "logproto-file-writer.h"
#include "logmsg/logmsg.h"
#include "apphook.h"
Include dependency graph for test_file_writer.c:

Functions

 Test (file_writer, write_single_message_and_flush_is_expected_to_dump_the_payload_to_the_output)
 
 Test (file_writer, batches_of_messages_should_be_flushed_to_the_output)
 
 Test (file_writer, messages_should_be_flushed_automatically_once_we_reach_batch_size)
 
 Test (file_writer, batches_of_messages_are_flushed_even_if_the_underlying_transport_is_accepting_a_few_bytes_per_write)
 
 TestSuite (file_writer,.init=startup,.fini=teardown)
 

Function Documentation

◆ Test() [1/4]

Test ( file_writer  ,
batches_of_messages_are_flushed_even_if_the_underlying_transport_is_accepting_a_few_bytes_per_write   
)

◆ Test() [2/4]

Test ( file_writer  ,
batches_of_messages_should_be_flushed_to_the_output   
)

◆ Test() [3/4]

Test ( file_writer  ,
messages_should_be_flushed_automatically_once_we_reach_batch_size   
)

◆ Test() [4/4]

Test ( file_writer  ,
write_single_message_and_flush_is_expected_to_dump_the_payload_to_the_output   
)

◆ TestSuite()

TestSuite ( file_writer  ,
init = startup,
fini = teardown 
)