mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
clang-format
This commit is contained in:
3
slsSupportLib/include/sls/string_utils.h
Executable file → Normal file
3
slsSupportLib/include/sls/string_utils.h
Executable file → Normal file
@ -52,6 +52,5 @@ std::vector<std::string> split(const std::string &strToSplit, char delimeter);
|
||||
|
||||
std::string RemoveUnit(std::string &str);
|
||||
|
||||
bool is_int(const std::string& s);
|
||||
bool is_int(const std::string &s);
|
||||
} // namespace sls
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
/** API versions */
|
||||
#define GITBRANCH "5.0.0"
|
||||
#define APICTB 0x201117
|
||||
#define APIGOTTHARD 0x201117
|
||||
#define GITBRANCH "5.0.0"
|
||||
#define APICTB 0x201117
|
||||
#define APIGOTTHARD 0x201117
|
||||
#define APIGOTTHARD2 0x201117
|
||||
#define APIJUNGFRAU 0x201117
|
||||
#define APIMYTHEN3 0x201117
|
||||
#define APIMOENCH 0x201117
|
||||
#define APIEIGER 0x201117
|
||||
#define APILIB 0x201118
|
||||
#define APIRECEIVER 0x201118
|
||||
#define APIGUI 0x201118
|
||||
#define APIJUNGFRAU 0x201117
|
||||
#define APIMYTHEN3 0x201117
|
||||
#define APIMOENCH 0x201117
|
||||
#define APIEIGER 0x201117
|
||||
#define APILIB 0x201118
|
||||
#define APIRECEIVER 0x201118
|
||||
#define APIGUI 0x201118
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "catch.hpp"
|
||||
#include "sls/ClientSocket.h"
|
||||
#include "sls/ServerSocket.h"
|
||||
#include "catch.hpp"
|
||||
#include <chrono>
|
||||
#include <future>
|
||||
#include <iostream>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "catch.hpp"
|
||||
#include "sls/StaticVector.h"
|
||||
#include "sls/TypeTraits.h"
|
||||
#include "catch.hpp"
|
||||
|
||||
#include <array>
|
||||
#include <sstream>
|
||||
|
2
slsSupportLib/tests/test-Timer.cpp
Executable file → Normal file
2
slsSupportLib/tests/test-Timer.cpp
Executable file → Normal file
@ -1,5 +1,5 @@
|
||||
#include "sls/Timer.h"
|
||||
#include "catch.hpp"
|
||||
#include "sls/Timer.h"
|
||||
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "catch.hpp"
|
||||
#include "sls/TimeHelper.h"
|
||||
#include "sls/ToString.h"
|
||||
#include "catch.hpp"
|
||||
#include "sls/network_utils.h"
|
||||
#include "sls/sls_detector_defs.h"
|
||||
#include <array>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "sls/TypeTraits.h"
|
||||
#include "catch.hpp"
|
||||
#include "sls/TypeTraits.h"
|
||||
#include <array>
|
||||
#include <chrono>
|
||||
#include <initializer_list>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "sls/UdpRxSocket.h"
|
||||
#include "catch.hpp"
|
||||
#include "sls/UdpRxSocket.h"
|
||||
#include "sls/sls_detector_exceptions.h"
|
||||
#include <cstdint>
|
||||
#include <errno.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "sls/ZmqSocket.h"
|
||||
#include "catch.hpp"
|
||||
#include "sls/ZmqSocket.h"
|
||||
|
||||
TEST_CASE("Throws when cannot create socket") {
|
||||
REQUIRE_THROWS(ZmqSocket("sdiasodjajpvv", 5076001));
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "sls/bit_utils.h"
|
||||
#include "catch.hpp"
|
||||
#include "sls/bit_utils.h"
|
||||
#include <vector>
|
||||
|
||||
TEST_CASE("Get set bits from 0") {
|
||||
|
@ -66,7 +66,7 @@ TEST_CASE("Many characters in a row") {
|
||||
REQUIRE(std::string(str) == "someeequite::ongstring");
|
||||
}
|
||||
|
||||
TEST_CASE("Check is string is integer"){
|
||||
TEST_CASE("Check is string is integer") {
|
||||
|
||||
REQUIRE(sls::is_int("75"));
|
||||
REQUIRE(sls::is_int("11675"));
|
||||
|
Reference in New Issue
Block a user