Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
0f01103a
Commit
0f01103a
authored
Feb 22, 2021
by
Alexander Lohnau
💬
Browse files
locationsrunner: Expand unit tests
parent
8b6ad495
Changes
1
Hide whitespace changes
Inline
Side-by-side
runners/locations/autotests/locationsrunnertest.cpp
View file @
0f01103a
...
...
@@ -85,6 +85,9 @@ void LocationsRunnerTest::shouldNotProduceResult_data()
QTest
::
newRow
(
"non existent file URL"
)
<<
QUrl
::
fromLocalFile
(
QDir
::
homePath
()
+
"_thisfiledoesnotexist.abc"
).
toString
();
QTest
::
newRow
(
"nonexistent file with $HOME as env variable"
)
<<
"$HOME/_thisfiledoesnotexist.abc"
;
QTest
::
newRow
(
"nonexistent protocol"
)
<<
"thisprotocoldoesnotexist:test123"
;
QTest
::
newRow
(
"empty string"
)
<<
""
;
QTest
::
newRow
(
"missing closing double quote"
)
<<
"
\"
"
;
QTest
::
newRow
(
"missing closing single quote"
)
<<
"'"
;
}
void
LocationsRunnerTest
::
shouldProduceResult_data
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment