* Get the key for the provided dependency group. * * The key is either the parent Checkable object or the redundancy group name of the dependency object. * This is used to uniquely identify the dependency group within a given Checkable object. * * @param dependency The dependency to get the key for. * * @return - Returns the key for the provided dependency group. */
| 50 | * @return - Returns the key for the provided dependency group. |
| 51 | */ |
| 52 | static std::variant<Checkable*, String> GetDependencyGroupKey(const Dependency::Ptr& dependency) |
| 53 | { |
| 54 | if (auto redundancyGroup(dependency->GetRedundancyGroup()); !redundancyGroup.IsEmpty()) { |
| 55 | return redundancyGroup; |
| 56 | } |
| 57 | |
| 58 | return dependency->GetParent().get(); |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Add the provided dependency to the current Checkable list of dependencies. |
no test coverage detected