<table><tr><td style="">markg added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D10414" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p><a href="https://phabricator.kde.org/p/dfaure/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;" rel="noreferrer">@dfaure</a> i can make the test much more complete if you want.. But it's more complex thus i left it out.<br />
I can store the UDSEntry in a QDataStream which would be backed by a QByteArray. That can be hashed!<br />
Then i can do the same after moving operations and compare the hash. That way i would know for sure the UDSEntry objects match perfectly.</p>

<p>But as said, that is more complex. I'd probably make a lambda within the testMove() function. I think with a signature like this:<br />
auto udsEntryHash = [](const KIO::UDSEntry &entry){<br />
// some foo..<br />
return hash; (would be the QCryptographicHash::result() output).<br />
};</p>

<p>Your call :)</p>

<p>Or i can add that as a separate test that just tests UDSEntry copy and move operations. That might actually be better and more generic.<br />
Do note that this doesn't fix or catch anything at the moment. It would just be an extra test to guarantee copying of UDSEntry objects is not broken.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10414" rel="noreferrer">https://phabricator.kde.org/D10414</a></div></div><br /><div><strong>To: </strong>markg, dfaure<br /><strong>Cc: </strong>apol, Frameworks, michaelh, ngraham<br /></div>