>> So my question for today is about test cases, is there a complexity
>> tipping point after which it's not worth it?
>>
>> i.e. for '-xattr'
>> - Ensure the filesystem supports extended attributes
>> - create a test file
>> - set an etended attribute
>> - check that the file matches the pattern
>>
>> For the '-cap' option, creating the test case would be even more complex
>> as you need root permissions to set capabilities on files, need to ensure
>> sample files are cleaned up etc
>>
>> ... thoughts?

>If someone later changes your code in a way that prevents it from
>working correctly, is there a high probability that the tests you write
>will reveal that the mistake has been made?


Good point .. I probably could have thought that one through a bit longer

_______________________________________________
Findutils-patches mailing list
Findutils-patches@gnu.org
https://lists.gnu.org/mailman/listinfo/findutils-patches

Reply via email to