Param for the tests: 'framework_effective' Framework specified effective capabilities for the container. 'operator_effective' Default effective capabilities configured by the operator. 'operator_bounding' Default bounding capabilities configured by the operator 'success' True if the task should finish normally.
| 91 | // 'success' |
| 92 | // True if the task should finish normally. |
| 93 | struct TestParam |
| 94 | { |
| 95 | enum Result |
| 96 | { |
| 97 | FAILURE = 0, |
| 98 | SUCCESS = 1 |
| 99 | }; |
| 100 | |
| 101 | enum UseImage |
| 102 | { |
| 103 | WITHOUT_IMAGE = 0, |
| 104 | WITH_IMAGE = 1 |
| 105 | }; |
| 106 | |
| 107 | TestParam( |
| 108 | const Option<set<Capability>>& _framework_effective, |
| 109 | const Option<set<Capability>>& _framework_bounding, |
| 110 | const Option<set<Capability>>& _operator_effective, |
| 111 | const Option<set<Capability>>& _operator_bounding, |
| 112 | UseImage _useImage, |
| 113 | Result _result) |
| 114 | : framework_effective(convert(_framework_effective)), |
| 115 | framework_bounding(convert(_framework_bounding)), |
| 116 | operator_effective(convert(_operator_effective)), |
| 117 | operator_bounding(convert(_operator_bounding)), |
| 118 | useImage(_useImage), |
| 119 | result(_result) {} |
| 120 | |
| 121 | static const Option<CapabilityInfo> convert( |
| 122 | const Option<set<Capability>>& caps) |
| 123 | { |
| 124 | return caps.isSome() |
| 125 | ? capabilities::convert(caps.get()) |
| 126 | : Option<CapabilityInfo>::none(); |
| 127 | } |
| 128 | |
| 129 | const Option<CapabilityInfo> framework_effective; |
| 130 | const Option<CapabilityInfo> framework_bounding; |
| 131 | const Option<CapabilityInfo> operator_effective; |
| 132 | const Option<CapabilityInfo> operator_bounding; |
| 133 | |
| 134 | const UseImage useImage; |
| 135 | const Result result; |
| 136 | }; |
| 137 | |
| 138 | |
| 139 | ostream& operator<<(ostream& stream, const TestParam& param) |
no outgoing calls
no test coverage detected