summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/main/tests.hpp
blob: 757052b60fdb0063eab85c73e7044dbd721d3e84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

#include <vector>
#include <functional>

inline std::vector<std::function<bool()>> testFns;

#define REGISTER_TEST_FN(fn)                                                                                                                                                       \
    static auto _register_fn = [] {                                                                                                                                                \
        testFns.emplace_back(fn);                                                                                                                                                  \
        return 1;                                                                                                                                                                  \
    }();