| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <QJsonObject> | ||
| 4 | |||
| 5 | #include "workspaces.h" | ||
| 6 | #include "outputs.h" | ||
| 7 | #include "bindingModes.h" | ||
| 8 | #include "marks.h" | ||
| 9 | #include "tree.h" | ||
| 10 | #include "version.h" | ||
| 11 | #include "bindingState.h" | ||
| 12 | #include "barConfigs.h" | ||
| 13 | #include "config.h" | ||
| 14 | |||
| 15 | namespace test_qi3pc{ | ||
| 16 | namespace data { | ||
| 17 | struct i3messages { | ||
| 18 | inline static auto workspaces = test_qi3pc::raw::data::workspaces; | ||
| 19 | inline static auto outputs = test_qi3pc::raw::data::outputs; | ||
| 20 | inline static auto bindingModes = test_qi3pc::raw::data::bindingModes; | ||
| 21 | inline static auto marks = test_qi3pc::raw::data::marks; | ||
| 22 | inline static auto tree = test_qi3pc::raw::data::tree; | ||
| 23 | inline static auto version = test_qi3pc::raw::data::version; | ||
| 24 | inline static auto bindingState = test_qi3pc::raw::data::bindingState; | ||
| 25 | inline static auto parsedBindingState = test_qi3pc::raw::data::parsedBindingState; | ||
| 26 | inline static auto barConfigs = test_qi3pc::raw::data::barConfigs; | ||
| 27 | inline static auto config = test_qi3pc::raw::data::config; | ||
| 28 | |||
| 29 | 2 | inline static QByteArray barIds() { | |
| 30 |
1/2✓ Branch 0 (2→3) taken 2 times.
✗ Branch 1 (2→29) not taken.
|
2 | auto begin = barConfigs.constBegin(); |
| 31 |
1/2✓ Branch 0 (3→4) taken 2 times.
✗ Branch 1 (3→29) not taken.
|
2 | auto end = barConfigs.constEnd(); |
| 32 |
1/2✓ Branch 0 (4→5) taken 2 times.
✗ Branch 1 (4→29) not taken.
|
2 | QJsonArray array; |
| 33 |
2/2✓ Branch 0 (12→6) taken 2 times.
✓ Branch 1 (12→13) taken 2 times.
|
4 | for (auto it = begin; it != end; ++it) { |
| 34 |
2/4✓ Branch 0 (7→8) taken 2 times.
✗ Branch 1 (7→22) not taken.
✓ Branch 2 (8→9) taken 2 times.
✗ Branch 3 (8→20) not taken.
|
2 | array.append(it.key()); |
| 35 | } | ||
| 36 | |||
| 37 |
2/4✓ Branch 0 (13→14) taken 2 times.
✗ Branch 1 (13→26) not taken.
✓ Branch 2 (14→15) taken 2 times.
✗ Branch 3 (14→24) not taken.
|
4 | return QJsonDocument(array).toJson(QJsonDocument::Compact); |
| 38 | 2 | } | |
| 39 | |||
| 40 | 1 | inline static QJsonObject barConfig(const QString& id) { | |
| 41 |
3/6✓ Branch 0 (2→3) taken 1 times.
✗ Branch 1 (2→11) not taken.
✓ Branch 2 (3→4) taken 1 times.
✗ Branch 3 (3→11) not taken.
✓ Branch 4 (4→5) taken 1 times.
✗ Branch 5 (4→9) not taken.
|
1 | return QJsonDocument::fromJson(barConfigs[id]).object(); |
| 42 | } | ||
| 43 | }; | ||
| 44 | } // namespace data | ||
| 45 | } // namespace test_qi3pc | ||
| 46 |