MCPcopy Create free account
hub / github.com/KDE/kdevelop / createAnnotationLine

Function createAnnotationLine

kdevplatform/vcs/tests/test_vcsannotation.cpp:22–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22static
23VcsAnnotationLine createAnnotationLine(int lineNumber,
24 const QString& text,
25 const QString& author,
26 const VcsRevision& revision,
27 const QDateTime& date,
28 const QString& commitMessage)
29{
30 VcsAnnotationLine annotationLine;
31 annotationLine.setLineNumber(lineNumber);
32 annotationLine.setText(text);
33 annotationLine.setAuthor(author);
34 annotationLine.setRevision(revision);
35 annotationLine.setDate(date);
36 annotationLine.setCommitMessage(commitMessage);
37 return annotationLine;
38}
39
40void TestVcsAnnotation::testCopyConstructor()
41{

Callers 2

testCopyConstructorMethod · 0.85
testAssignOperatorMethod · 0.85

Calls 6

setLineNumberMethod · 0.80
setTextMethod · 0.45
setAuthorMethod · 0.45
setRevisionMethod · 0.45
setDateMethod · 0.45
setCommitMessageMethod · 0.45

Tested by

no test coverage detected