mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor: lint
This commit is contained in:
@ -20,12 +20,12 @@ using remove_cvref_t = typename std::remove_cv<typename std::remove_reference<T>
|
||||
*/
|
||||
TEST_CASE_METHOD(GlibTestsFixture, "SafeSignal basic functionality", "[signal][thread][util]") {
|
||||
const int NUM_EVENTS = 100;
|
||||
int count = 0;
|
||||
int last_value = 0;
|
||||
int count = 0;
|
||||
int last_value = 0;
|
||||
|
||||
SafeSignal<int, std::string> test_signal;
|
||||
|
||||
const auto main_tid = std::this_thread::get_id();
|
||||
const auto main_tid = std::this_thread::get_id();
|
||||
std::thread producer;
|
||||
|
||||
// timeout the test in 500ms
|
||||
@ -63,7 +63,7 @@ TEST_CASE_METHOD(GlibTestsFixture, "SafeSignal basic functionality", "[signal][t
|
||||
|
||||
template <typename T>
|
||||
struct TestObject {
|
||||
T value;
|
||||
T value;
|
||||
unsigned copied = 0;
|
||||
unsigned moved = 0;
|
||||
|
||||
@ -93,7 +93,7 @@ struct TestObject {
|
||||
}
|
||||
|
||||
bool operator==(T other) const { return value == other; }
|
||||
operator T() const { return value; }
|
||||
operator T() const { return value; }
|
||||
};
|
||||
|
||||
/*
|
||||
@ -101,7 +101,7 @@ struct TestObject {
|
||||
*/
|
||||
TEST_CASE_METHOD(GlibTestsFixture, "SafeSignal copy/move counter", "[signal][thread][util]") {
|
||||
const int NUM_EVENTS = 3;
|
||||
int count = 0;
|
||||
int count = 0;
|
||||
|
||||
SafeSignal<TestObject<int>> test_signal;
|
||||
|
||||
|
@ -12,7 +12,7 @@ int main(int argc, char* argv[]) {
|
||||
Glib::init();
|
||||
|
||||
session.applyCommandLine(argc, argv);
|
||||
const auto logger = spdlog::default_logger();
|
||||
const auto logger = spdlog::default_logger();
|
||||
const auto& reporter_name = session.config().getReporterName();
|
||||
if (reporter_name == "tap") {
|
||||
spdlog::set_pattern("# [%l] %v");
|
||||
|
Reference in New Issue
Block a user