Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Add-ons
Commits
16d4c379
Commit
16d4c379
authored
Jun 23, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve autotest
parent
9442061e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
kmail/editorsendcheckplugins/checkbeforesend/autotests/checkduplicateemailsjobtest.cpp
...checkbeforesend/autotests/checkduplicateemailsjobtest.cpp
+29
-0
No files found.
kmail/editorsendcheckplugins/checkbeforesend/autotests/checkduplicateemailsjobtest.cpp
View file @
16d4c379
...
...
@@ -60,6 +60,35 @@ void CheckDuplicateEmailsJobTest::shouldReturnEmails_data()
lst
.
append
(
QStringLiteral
(
"blo"
));
QTest
::
newRow
(
"emptyresultbutnotemptylist"
)
<<
lst
<<
QMap
<
QString
,
int
>
();
lst
.
clear
();
lst
.
append
(
QStringLiteral
(
"foo"
));
lst
.
append
(
QStringLiteral
(
"foo"
));
lst
.
append
(
QStringLiteral
(
"blo"
));
QMap
<
QString
,
int
>
result
;
result
.
insert
(
QStringLiteral
(
"foo"
),
2
);
QTest
::
newRow
(
"oneduplicateemails"
)
<<
lst
<<
result
;
lst
.
clear
();
lst
.
append
(
QStringLiteral
(
"foo"
));
lst
.
append
(
QStringLiteral
(
"foo"
));
lst
.
append
(
QStringLiteral
(
"blo"
));
lst
.
append
(
QStringLiteral
(
"blo"
));
result
.
clear
();
result
.
insert
(
QStringLiteral
(
"foo"
),
2
);
result
.
insert
(
QStringLiteral
(
"blo"
),
2
);
QTest
::
newRow
(
"twoduplicateemails"
)
<<
lst
<<
result
;
lst
.
clear
();
lst
.
append
(
QStringLiteral
(
"foo"
));
lst
.
append
(
QStringLiteral
(
"foo"
));
lst
.
append
(
QStringLiteral
(
"foo"
));
lst
.
append
(
QStringLiteral
(
"blo"
));
lst
.
append
(
QStringLiteral
(
"blo"
));
result
.
clear
();
result
.
insert
(
QStringLiteral
(
"foo"
),
3
);
result
.
insert
(
QStringLiteral
(
"blo"
),
2
);
QTest
::
newRow
(
"twoduplicateemailswithdifferentvalue"
)
<<
lst
<<
result
;
}
void
CheckDuplicateEmailsJobTest
::
shouldReturnEmails
()
...
...
Write
Preview
Markdown
is supported
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