cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl unit testing

From: Pierre Joye <pierre.php_at_gmail.com>
Date: Mon, 3 Jan 2011 16:05:27 +0100

On Mon, Jan 3, 2011 at 10:32 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> So when we want to unit test other functions we need another way to reach
> them.
>
> Also, the existance of many static functions may force us to do a separate
> build for unit tests anyway.

Right, separate builds are necessary.

By the way, I did not review all tests yet and only scratch the
surface so far (to test my windows related changes :). But do you test
internal libcurl functions (not exposed) as well? Or only the exposed
APIs? If internals functions are tested as well, that's a kind of
totally different tests case. Using obj or adding the required files
to the build works just fine.

Cheers,

-- 
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-03