MCPcopy Create free account
hub / github.com/KDE/kdiff3 / writeActualAlignmentFile

Function writeActualAlignmentFile

test/alignmenttest.cpp:200–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void writeActualAlignmentFile(QString actualResultFileName, const Diff3LineList &actualDiff3LineList)
201{
202 Diff3LineList::const_iterator p_d3l;
203
204 QFile file(actualResultFileName);
205 if ( file.open(QIODevice::WriteOnly) )
206 {
207 {
208 QTextStream t( &file );
209
210 for(p_d3l = actualDiff3LineList.begin(); p_d3l != actualDiff3LineList.end(); p_d3l++)
211 {
212 t << p_d3l->getLineA() << " " << p_d3l->getLineB() << " " << p_d3l->getLineC() << endl;
213 }
214 }
215 file.close();
216 }
217}
218
219bool dataIsConsistent(LineRef line1, QString &line1Text, LineRef line2, QString &line2Text, bool equal)
220{

Callers 1

runTestFunction · 0.85

Calls 6

openMethod · 0.80
endMethod · 0.80
getLineAMethod · 0.80
getLineBMethod · 0.80
getLineCMethod · 0.80
closeMethod · 0.80

Tested by

no test coverage detected