[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Question about Qt tests
From:       Thiago Macieira <thiago () kde ! org>
Date:       2014-02-16 17:36:11
Message-ID: 6419223.p5fmHXe91e () tjmaciei-mobl4
[Download RAW message or body]

Em dom 16 fev 2014, =E0s 06:38:35, Michael Stemle escreveu:
> So, I'm still getting used to the dpointer paradigm. Is anybody familiar
> with how to use QTest to simulate code paths dependent on values in the
> dpointer which have no exposed mutators?

If they have no exposed mutators, can those values be reached? If the users =

can't reach them, then you don't have to test them.

Otherwise, you can just declare your test class as a friend of the main cla=
ss.

-- =

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=
e <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic