| 63 | } |
| 64 | |
| 65 | Json::Value Cache::DumpEntry(std::string const& name) |
| 66 | { |
| 67 | Json::Value entry = Json::objectValue; |
| 68 | entry["name"] = name; |
| 69 | entry["type"] = |
| 70 | cmState::CacheEntryTypeToString(this->State->GetCacheEntryType(name)); |
| 71 | entry["value"] = this->State->GetSafeCacheEntryValue(name); |
| 72 | |
| 73 | Json::Value properties = this->DumpEntryProperties(name); |
| 74 | if (!properties.empty()) { |
| 75 | entry["properties"] = std::move(properties); |
| 76 | } |
| 77 | |
| 78 | return entry; |
| 79 | } |
| 80 | |
| 81 | Json::Value Cache::DumpEntryProperties(std::string const& name) |
| 82 | { |
no test coverage detected