| 80 | } |
| 81 | |
| 82 | static EntryType typeOf( const TestEngine::Entry& entry ) |
| 83 | { |
| 84 | return std::visit( MR::overloaded{ |
| 85 | []( const TestEngine::ButtonEntry& ) { return EntryType::button; }, |
| 86 | []( const TestEngine::ValueEntry& e ) |
| 87 | { |
| 88 | return std::visit( MR::overloaded{ |
| 89 | []( const TestEngine::ValueEntry::Value<std::int64_t>& ){ return EntryType::valueInt; }, |
| 90 | []( const TestEngine::ValueEntry::Value<std::uint64_t>& ){ return EntryType::valueUint; }, |
| 91 | []( const TestEngine::ValueEntry::Value<double>& ){ return EntryType::valueReal; }, |
| 92 | []( const TestEngine::ValueEntry::Value<std::string>& ){ return EntryType::valueString; }, |
| 93 | }, e.value ); |
| 94 | }, |
| 95 | []( const TestEngine::GroupEntry& ) { return EntryType::group; }, |
| 96 | }, entry.value ); |
| 97 | } |
| 98 | |
| 99 | Expected<std::vector<TypedEntry>> listEntries( const std::vector<std::string>& path ) |
| 100 | { |
no outgoing calls
no test coverage detected