Improve QDate test coverage.
authorMitch Curtis <mitch.curtis@digia.com>
Mon, 15 Oct 2012 16:22:45 +0000 (18:22 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 23 Oct 2012 23:38:54 +0000 (01:38 +0200)
commit6a7a08b4a873d0bb4602e4095dc62d7124a6f41e
treef6f2e9a3d93c8508427f88dbf00ad75c8b26ea27
parent7cbdac13627b8e6ba9ed1bcd42fdf3f408f02b7d
Improve QDate test coverage.

Some statements could not be tested, such as default cases of switches
where all possible cases are already handled and some statements where
the system locale is used.

I also removed some statements that would never be reached and hence
will never be able to be covered by tests.

Change-Id: I8ea3071f66d942d986e65708732af6751d36b5e3
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
src/corelib/tools/qdatetime.cpp
tests/auto/corelib/tools/qdate/tst_qdate.cpp