| 36 | AttributionResolver::~AttributionResolver() = default; |
| 37 | |
| 38 | Attribution AttributionResolver::resolveAttribution(const StringBox& moduleName) { |
| 39 | const auto& it = _mapping.find(moduleName); |
| 40 | if (it == _mapping.end()) { |
| 41 | if (!moduleName.isEmpty()) { |
| 42 | VALDI_WARN(_logger, "Could not resolve attribution for module '{}'", moduleName); |
| 43 | } |
| 44 | return AttributionResolver::getDefaultAttribution(); |
| 45 | } |
| 46 | |
| 47 | return Attribution(moduleName, it->second.owner, it->second.callback); |
| 48 | } |
| 49 | |
| 50 | VALDI_ATTRIBUTION_FN(valdi, runtime); |
| 51 |
no test coverage detected