Commit 75b0429e authored by Nikolai Kosjar's avatar Nikolai Kosjar

CppTools: Locator Tests: Make test data more descriptive

Change-Id: I23e88c8a04f82d51651038b38faf07057244fede
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent 91dbac03
......@@ -175,9 +175,9 @@ void CppToolsPlugin::test_cpplocatorfilters_CppLocatorFilter_data()
<< cppFunctionsFilter
<< QString::fromLatin1("function")
<< (QList<ResultData>()
<< ResultData(_("function2(bool, int)"), _("MyClass"))
<< ResultData(_("function2(bool, int)"), _("MyNamespace::MyClass"))
<< ResultData(_("function2(bool, int)"), _("<anonymous namespace>::MyClass"))
<< ResultData(_("functionDefinedInClass(bool, int)"), _("MyClass"))
<< ResultData(_("functionDefinedInClass(bool, int)"), _("MyNamespace::MyClass"))
<< ResultData(_("functionDefinedInClass(bool, int)"), _("<anonymous namespace>::MyClass"))
<< ResultData(_("functionDefinedOutSideClass(char)"), _("MyClass"))
<< ResultData(_("functionDefinedOutSideClass(char)"), _("MyNamespace::MyClass"))
<< ResultData(_("functionDefinedOutSideClass(char)"), _("<anonymous namespace>::MyClass"))
......@@ -193,7 +193,7 @@ void CppToolsPlugin::test_cpplocatorfilters_CppLocatorFilter_data()
<< _("mynamespace::")
<< (QList<ResultData>()
<< ResultData(_("MyClass()"), _("MyNamespace::MyClass"))
<< ResultData(_("function2(bool, int)"), _("MyNamespace::MyClass"))
<< ResultData(_("functionDefinedInClass(bool, int)"), _("MyNamespace::MyClass"))
<< ResultData(_("functionDefinedOutSideClass(char)"), _("MyNamespace::MyClass"))
<< ResultData(_("functionDefinedOutSideClassAndNamespace(float)"), _("MyNamespace::MyClass"))
<< ResultData(_("myFunction(bool, int)"), _("MyNamespace"))
......@@ -255,8 +255,8 @@ void CppToolsPlugin::test_cpplocatorfilters_CppCurrentDocumentFilter()
<< ResultData(_("int V2"), _("MyEnum"))
<< ResultData(_("MyClass"), _(""))
<< ResultData(_("MyClass"), _("MyClass"))
<< ResultData(_("function1"), _("MyClass"))
<< ResultData(_("function2"), _("MyClass"))
<< ResultData(_("functionDeclaredOnly"), _("MyClass"))
<< ResultData(_("functionDefinedInClass"), _("MyClass"))
<< ResultData(_("functionDefinedOutSideClass"), _("MyClass"))
<< ResultData(_("functionDefinedOutSideClass"), _("MyClass"))
<< ResultData(_("int myVariable"), _("MyNamespace"))
......@@ -266,8 +266,8 @@ void CppToolsPlugin::test_cpplocatorfilters_CppCurrentDocumentFilter()
<< ResultData(_("int V2"), _("MyNamespace::MyEnum"))
<< ResultData(_("MyClass"), _("MyNamespace"))
<< ResultData(_("MyClass"), _("MyNamespace::MyClass"))
<< ResultData(_("function1"), _("MyNamespace::MyClass"))
<< ResultData(_("function2"), _("MyNamespace::MyClass"))
<< ResultData(_("functionDeclaredOnly"), _("MyNamespace::MyClass"))
<< ResultData(_("functionDefinedInClass"), _("MyNamespace::MyClass"))
<< ResultData(_("functionDefinedOutSideClass"), _("MyNamespace::MyClass"))
<< ResultData(_("functionDefinedOutSideClassAndNamespace"), _("MyNamespace::MyClass"))
<< ResultData(_("functionDefinedOutSideClass"), _("MyNamespace::MyClass"))
......@@ -279,8 +279,8 @@ void CppToolsPlugin::test_cpplocatorfilters_CppCurrentDocumentFilter()
<< ResultData(_("int V2"), _("<anonymous namespace>::MyEnum"))
<< ResultData(_("MyClass"), _("<anonymous namespace>"))
<< ResultData(_("MyClass"), _("<anonymous namespace>::MyClass"))
<< ResultData(_("function1"), _("<anonymous namespace>::MyClass"))
<< ResultData(_("function2"), _("<anonymous namespace>::MyClass"))
<< ResultData(_("functionDeclaredOnly"), _("<anonymous namespace>::MyClass"))
<< ResultData(_("functionDefinedInClass"), _("<anonymous namespace>::MyClass"))
<< ResultData(_("functionDefinedOutSideClass"), _("<anonymous namespace>::MyClass"))
<< ResultData(_("functionDefinedOutSideClass"), _("<anonymous namespace>::MyClass"))
<< ResultData(_("main()"), _(""))
......
......@@ -18,8 +18,8 @@ class MyClass
{
public:
MyClass() {}
int function1();
int function2(bool yesno, int number) {}
int functionDeclaredOnly();
int functionDefinedInClass(bool yesno, int number) {}
int functionDefinedOutSideClass(char c);
};
......@@ -41,8 +41,8 @@ class MyClass
{
public:
MyClass() {}
int function1();
int function2(bool yesno, int number) {}
int functionDeclaredOnly();
int functionDefinedInClass(bool yesno, int number) {}
int functionDefinedOutSideClass(char c);
int functionDefinedOutSideClassAndNamespace(float x);
};
......@@ -69,8 +69,8 @@ class MyClass
{
public:
MyClass() {}
int function1();
int function2(bool yesno, int number) {}
int functionDeclaredOnly();
int functionDefinedInClass(bool yesno, int number) {}
int functionDefinedOutSideClass(char c);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment