New REST+OpenAPI interface

This commit is contained in:
2023-12-11 12:11:54 +01:00
parent 99f33eaf53
commit 0b69dfb290
120 changed files with 11309 additions and 2532 deletions
+5 -7
View File
@@ -3,8 +3,6 @@
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <google/protobuf/util/message_differencer.h>
#include "../common/DiffractionExperiment.h"
#include "../compression/JFJochCompressor.h"
#include "../common/NetworkAddressConvert.h"
@@ -137,7 +135,7 @@ TEST_CASE("DiffractionExperiment_Compression","[DiffractionExperiment]") {
TEST_CASE("DiffractionExperiment_UnitCell","[DiffractionExperiment]") {
DiffractionExperiment x;
REQUIRE(!x.HasUnitCell());
REQUIRE(!x.GetUnitCell());
UnitCell cell{
.a = 10,
@@ -149,10 +147,10 @@ TEST_CASE("DiffractionExperiment_UnitCell","[DiffractionExperiment]") {
};
REQUIRE_NOTHROW(x.SetUnitCell(cell));
REQUIRE(x.HasUnitCell());
REQUIRE(x.GetUnitCell().c == 30);
REQUIRE_NOTHROW(x.SetUnitCell());
REQUIRE(!x.HasUnitCell());
REQUIRE(x.GetUnitCell());
REQUIRE(x.GetUnitCell()->c == 30);
REQUIRE_NOTHROW(x.SetUnitCell({}));
REQUIRE(!x.GetUnitCell());
REQUIRE_NOTHROW(x.SetUnitCell(cell));
}