----- Original Message -----
> From: Ximin Luo <[email protected]>
> To: leuchtkaefer <[email protected]>; Discussion of development issues 
> <[email protected]>
> Cc: 
> Sent: Monday, May 27, 2013 5:04 PM
> Subject: Re: [freenet-dev] Library entry point and tests
> 
> On 27/05/13 13:56, leuchtkaefer wrote:
>> 
>> 
>>  Hello,
>>  I want to simulate the Library functionality. 
>>  How can I test the SkeletonBTreeMap?
>>  The documentation doesn't explain and I cannot see any test in the 
> source code. I checked the tests on fred and Library source.
>>  Is there any other place that I should check? Should I check the spider?
>> 
> 
> (I haven't worked on the code for years, so the following information might 
> be
> out-of-date.)
> 
> AFAIK there are no unit tests for SkelBTreeMap. Having tests for it would be
> superb, but it would also take significant engineering effort, since it 
> heavily
> depends on IO. To even begin writing tests, you would need to write a mocking
> framework for Library's IO code. I'm not sure whether you would want to 
> do that
> as a GSoC student, and I'm not sure if it would bring enough significant
> benefit to justify the cost.
>

Hi infinity0, 
Thanks for your answer. I just need to know how did you test your code. I am 
not planning to write test for Library but trying to understand its 
functionality.  I am checking SkeletonTreeMapTest under 
test.plugin.Library.util but I don't know which of these test are more 
important to check?
I also like to know which are other classes beside SkeletonBTreeMap that may be 
important to see.
 
In a previous email I also asked regarding:
2. What means deflate/inflate the node?

3. What is a GhostNode? I understood is a not desirable structure used to 
contain some metadata or sth related with the serializer and needs to be 
removed.
Thanks again/
_______________________________________________
Devl mailing list
[email protected]
https://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to