Page MenuHomePhorge

Add tests for KazvFile and KazvSaveFile
ClosedPublic

Authored by nannanko on Fri, Aug 23, 10:39 PM.
Tags
None
Referenced Files
F27031: D176.1726598897.diff
Mon, Sep 16, 11:48 AM
Unknown Object (File)
Sat, Sep 14, 8:26 PM
Unknown Object (File)
Sat, Sep 14, 6:54 PM
Unknown Object (File)
Sat, Sep 14, 6:46 AM
Unknown Object (File)
Thu, Sep 12, 10:18 AM
Unknown Object (File)
Tue, Sep 10, 11:37 PM
Unknown Object (File)
Mon, Sep 9, 9:48 PM
Unknown Object (File)
Mon, Sep 9, 8:55 PM
Subscribers
None

Details

Summary

Add test for KazvFile and KazvSaveFile.

Type: add

Test Plan

Verify unit tests pass.

Diff Detail

Repository
rK kazv
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Please add a changelog type to the summary, using the following format:

Type: (add|remove|skip|security|fix)

Harbormaster returned this revision to the author for changes because remote builds failed.Fri, Aug 23, 10:54 PM
Harbormaster failed remote builds in B279: Diff 466!
nannanko edited the summary of this revision. (Show Details)
nannanko removed a reviewer: servant.
src/tests/kazv-file-test.cpp
32–35

don't write anything with side effects into the assertion macros. your code should still work if you remove all of the macros entirely.

36

use Qt's random generator

Add tests for KazvFile and KazvSaveFile

tusooa requested changes to this revision.Tue, Aug 27, 7:04 PM

test that if it is cancelled, the file will not be found on disk.

This revision now requires changes to proceed.Tue, Aug 27, 7:04 PM
In D176#3265, @tusooa wrote:

test that if it is cancelled, the file will not be found on disk.

This seems not necessary to test, or should be placed in the test of KazvIOJob, because the relevant functions are implemented by Qt. If you think it is necessary, I will write relevant tests for KazvIOBaseJob::cancel().

This revision is now accepted and ready to land.Sat, Aug 31, 7:03 PM