API
 
Loading...
Searching...
No Matches
generated_test_e1_n2.cpp
Go to the documentation of this file.
1#include <assert.h>
2#include "../../../../tests/catch2/catch.hpp"
3#include "../generated/logCodes.hpp"
7
8/* GENERATED ENTROPY TEST FILE
9 * s=1 n=2 e=1 t=[]
10 *
11 * including types:
12 * - observer
13 * - telem_saving
14 *
15 * generated by generateEntropyTests.py
16 */
17
18
19// random test values
20 const std::string oFullname_00000000 = "svbi2ogtzy";
21 const std::string oPfoa_00000001 = "nps2sorbbz";
22 const std::string oEmail_00000002 = "9vogs91t4i";
23 const std::string oInstitution_00000003 = "s8uqjt8a23";
24 const uint32_t tsRawsize_00000004 = 3475229416;
25 const uint32_t tsCompressedsize_00000005 = 2411013676;
26 const float tsEncoderate_00000006 = 0.426091;
27 const float tsDifferencerate_00000007 = 0.056123;
28 const float tsReorderrate_00000008 = 0.87001;
29 const float tsCompressrate_00000009 = 0.569999;
30
31
32SCENARIO( "test_e1_n2", "[]")
33{
34 GIVEN("a entropy=1 and nTypes=2")
35 {
36 WHEN("random values for fields")
37 {
40
41 REQUIRE(o_0.m_fullName == oFullname_00000000);
42 REQUIRE(o_0.m_pfoa == oPfoa_00000001);
43 REQUIRE(o_0.m_email == oEmail_00000002);
45 REQUIRE(o_0.m_verify);
46 REQUIRE(ts_1.m_rawSize == tsRawsize_00000004);
48 REQUIRE(ts_1.m_encodeRate == tsEncoderate_00000006);
52 REQUIRE(ts_1.m_verify);
53
54 }
55 }
56
57}
The MagAO-X logger flatbuffer log base type.
const float tsCompressrate_00000009
const std::string oFullname_00000000
const std::string oInstitution_00000003
const uint32_t tsRawsize_00000004
const float tsDifferencerate_00000007
const uint32_t tsCompressedsize_00000005
const std::string oEmail_00000002
const float tsEncoderate_00000006
SCENARIO("test_e1_n2", "[]")
const float tsReorderrate_00000008
const std::string oPfoa_00000001