Vector BLF
TestStructure.h
1 // SPDX-FileCopyrightText: 2013-2021 Tobias Lorenz <tobias.lorenz@gmx.net>
2 //
3 // SPDX-License-Identifier: GPL-3.0-or-later
4 
5 #pragma once
6 
7 #include <Vector/BLF/platform.h>
8 
9 #include <Vector/BLF/AbstractFile.h>
10 #include <Vector/BLF/ObjectHeader.h>
11 
12 #include <Vector/BLF/vector_blf_export.h>
13 
14 namespace Vector {
15 namespace BLF {
16 
20 struct VECTOR_BLF_EXPORT TestStructure final : ObjectHeader {
21  TestStructure();
22 
23  void read(AbstractFile & is) override;
24  void write(AbstractFile & os) override;
25  uint32_t calculateObjectSize() const override;
26 
30  uint32_t executionObjectIdentify {};
31 
33  enum Type : uint16_t {
34  TM_TESTMODULE = 1,
35  TM_TESTGROUP = 2,
36  TM_TESTCASE = 3,
37  TESTCONFIGURATION = 8,
38  TESTUNIT = 9,
39  TESTGROUP = 10,
40  TESTFIXTURE = 11,
41  TESTSEQUENCE = 12,
42  TESTSEQUENCELIST = 13,
43  TESTCASE = 14,
44  TESTCASELIST = 15
45  };
46 
50  uint16_t type {};
51 
53  uint16_t reservedTestStructure {};
54 
58  uint32_t uniqueNo {};
59 
61  enum Action : uint16_t {
62  BEGIN = 1,
63  END = 2,
64 
69  ABORT = 3
70  };
71 
75  uint16_t action {};
76 
78  enum Result : uint16_t {
79  UNDEFINED = 0,
80  NONE = 1,
81  PASSED = 2,
82  INCONCLUSIVE = 3,
83  FAILED = 4,
84  ERRORINTESTSYSTEM = 5
85  };
86 
90  uint16_t result {};
91 
95  uint32_t executingObjectNameLength {};
96 
100  uint32_t nameLength {};
101 
105  uint32_t textLength {};
106 
110  std::u16string executingObjectName {};
111 
115  std::u16string name {};
116 
120  std::u16string text {};
121 };
122 
123 }
124 }
Definition: AbstractFile.h:19
Object header.
Definition: ObjectHeader.h:22
TEST_STRUCTURE.
Definition: TestStructure.h:20
Result
Definition: TestStructure.h:78
Action
Definition: TestStructure.h:61
Type
Definition: TestStructure.h:33