gnunet-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Testing of non-exposed functions


From: Julius Bünger
Subject: Testing of non-exposed functions
Date: Wed, 5 Jun 2024 11:57:41 +0200

Hi all,

I have a question of secondary importance:

I recently asked the question whether we do unit tests in gnunet. Looking
at the examples pointed to in reply, I realize that I probably didn't
ask for what I meant. What I meant was:

Do we write tests for functions that are not exposed via API? And if so:
How do we?

The example at hand:
I think the pattern matching function of GNUNET_DISK_glob() has a bug
and I would like to test the pattern matching function without actually
interacting with the file system, without calling GNUNET_DISK_glob().

If there's no proper way, I'll simply go ahead and expand the
test_disk.c to cover GNUNET_DISK_glob() via the exposed API call.

Thanks in advance
julius/ch3


Attachment: binhrqLHH7aYl.bin
Description: PGP Key 0xF97F2DA52C3A6F0EAE471A71D4E5F972B413F3B3.

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]