mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
clang-format
This commit is contained in:
19
slsDetectorSoftware/tests/test-slsDetector.cpp
Executable file → Normal file
19
slsDetectorSoftware/tests/test-slsDetector.cpp
Executable file → Normal file
@ -7,8 +7,6 @@
|
||||
// #include <algorithm>
|
||||
// #include <iostream>
|
||||
|
||||
|
||||
|
||||
// TEST_CASE("Set and get trimen", "[detector]") {
|
||||
// // Free shared memory to be sure that we start in a clean state
|
||||
// slsDetector::freeSharedMemory(20, 20);
|
||||
@ -188,11 +186,9 @@
|
||||
// d.setPartialFramesPadding(true);
|
||||
// CHECK(d.getPartialFramesPadding() == true);
|
||||
|
||||
|
||||
// d.freeSharedMemory();
|
||||
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
// TEST_CASE("create detParamets struct", "[detector][new]"){
|
||||
// detParameters par;
|
||||
@ -206,7 +202,6 @@
|
||||
// CHECK(par.nGappixelsX == 0);
|
||||
// CHECK(par.nGappixelsY == 0);
|
||||
|
||||
|
||||
// detParameters par2{slsDetectorDefs::detectorType::EIGER};
|
||||
// CHECK(sizeof(par2) == 32);
|
||||
// CHECK(par2.nChanX == 256);
|
||||
@ -219,7 +214,6 @@
|
||||
// CHECK(par2.nGappixelsY == 1);
|
||||
// }
|
||||
|
||||
|
||||
// TEST_CASE("ctb digital offset and list", "[detector][ctb]"){
|
||||
// slsDetector::freeSharedMemory(20, 20);
|
||||
// slsDetector d(slsDetectorDefs::detectorType::CHIPTESTBOARD, 20, 20);
|
||||
@ -235,29 +229,26 @@
|
||||
// std::vector <int> list = d.getReceiverDbitList();
|
||||
// CHECK(list.empty());
|
||||
|
||||
|
||||
// for (int i = 0; i < 10; ++i)
|
||||
// list.push_back(i);
|
||||
// d.setReceiverDbitList(list);
|
||||
|
||||
|
||||
// CHECK(d.getReceiverDbitList().size() == 10);
|
||||
|
||||
// list.push_back(64);
|
||||
// CHECK_THROWS_AS(d.setReceiverDbitList(list), sls::RuntimeError);
|
||||
// CHECK_THROWS_WITH(d.setReceiverDbitList(list),
|
||||
// CHECK_THROWS_WITH(d.setReceiverDbitList(list),
|
||||
// Catch::Matchers::Contains("be between 0 and 63"));
|
||||
|
||||
// list.clear();
|
||||
// for (int i = 0; i < 65; ++i)
|
||||
// list.push_back(i);
|
||||
// CHECK(list.size() == 65);
|
||||
// CHECK_THROWS_WITH(d.setReceiverDbitList(list),
|
||||
// CHECK_THROWS_WITH(d.setReceiverDbitList(list),
|
||||
// Catch::Matchers::Contains("be greater than 64"));
|
||||
|
||||
// list.clear();
|
||||
// list.clear();
|
||||
// d.setReceiverDbitList(list);
|
||||
// CHECK(d.getReceiverDbitList().empty());
|
||||
|
||||
|
||||
|
||||
// }
|
Reference in New Issue
Block a user