test: made tests run again.
* added call to SqliteStorage::init() in storage tests. * made Storage::getIdForNodeWithNameHierarchy(...) return the correct node id again.
This commit is contained in:
@@ -761,15 +761,7 @@ Id Storage::onCommentParsed(const ParseLocation& location)
|
||||
|
||||
Id Storage::getIdForNodeWithNameHierarchy(const NameHierarchy& nameHierarchy) const
|
||||
{
|
||||
// return m_sqliteStorage.getNodeBySerializedName(NameHierarchy::serialize(nameHierarchy)).id;
|
||||
|
||||
const SearchNode* node = m_tokenIndex.getNode(nameHierarchy);
|
||||
if (node)
|
||||
{
|
||||
return node->getFirstTokenId();
|
||||
}
|
||||
|
||||
return 0;
|
||||
return m_sqliteStorage.getNodeBySerializedName(NameHierarchy::serialize(nameHierarchy)).id;
|
||||
}
|
||||
|
||||
Id Storage::getIdForEdge(
|
||||
|
||||
Reference in New Issue
Block a user