bool TestTreeItem::modifyDataTagContent(const QString &fileName, const TestCodeLocationAndType &location) { bool hasBeenModified = modifyFilePath(fileName); hasBeenModified |= modifyName(location.m_name); hasBeenModified |= modifyLineAndColumn(location); return hasBeenModified; }
// TODO pass TestParseResult * to all modifyXYZ() OR remove completely if possible bool TestTreeItem::modifyDataTagContent(const QString &name, const QString &fileName, unsigned line, unsigned column) { bool hasBeenModified = modifyFilePath(fileName); hasBeenModified |= modifyName(name); hasBeenModified |= modifyLineAndColumn(line, column); return hasBeenModified; }
bool GoogleTestTreeItem::modifyTestSetContent(const QString &fileName, const TestCodeLocationAndType &location) { bool hasBeenModified = modifyFilePath(fileName); hasBeenModified |= modifyLineAndColumn(location); if (m_state != location.m_state) { m_state = location.m_state; hasBeenModified = true; } return hasBeenModified; }
bool TestTreeItem::modifyLineAndColumn(const TestCodeLocationAndType &location) { return modifyLineAndColumn(location.m_line, location.m_column); }
bool TestTreeItem::modifyTestFunctionContent(const TestCodeLocationAndType &location) { bool hasBeenModified = modifyFilePath(location.m_name); hasBeenModified |= modifyLineAndColumn(location); return hasBeenModified; }
bool TestTreeItem::modifyTestFunctionContent(const TestParseResult *result) { bool hasBeenModified = modifyFilePath(result->fileName); hasBeenModified |= modifyLineAndColumn(result->line, result->column); return hasBeenModified; }
bool TestTreeItem::modifyTestCaseContent(const QString &name, unsigned line, unsigned column) { bool hasBeenModified = modifyName(name); hasBeenModified |= modifyLineAndColumn(line, column); return hasBeenModified; }