mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-12-28 00:18:14 +00:00
19 lines
611 B
C++
19 lines
611 B
C++
/**
|
|
* @file tests/unit/test_entry_handler.cpp
|
|
* @brief Test src/entry_handler.*.
|
|
*/
|
|
#include <src/entry_handler.h>
|
|
|
|
#include "../tests_common.h"
|
|
#include "../tests_log_checker.h"
|
|
|
|
TEST(EntryHandlerTests, LogPublisherDataTest) {
|
|
// call log_publisher_data
|
|
log_publisher_data();
|
|
|
|
// check if specific log messages exist
|
|
ASSERT_TRUE(log_checker::line_starts_with("test_sunshine.log", "Info: Package Publisher: "));
|
|
ASSERT_TRUE(log_checker::line_starts_with("test_sunshine.log", "Info: Publisher Website: "));
|
|
ASSERT_TRUE(log_checker::line_starts_with("test_sunshine.log", "Info: Get support: "));
|
|
}
|