MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / typeOf

Function typeOf

source/MRViewer/MRUITestEngineControl.cpp:82–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82static 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
99Expected<std::vector<TypedEntry>> listEntries( const std::vector<std::string>& path )
100{

Callers 2

listEntriesFunction · 0.85
walkAllFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected