News for hackers. Stuff that matters.
Re:Automated Unit Test Improvement Using Large Language Mode... by Ygg2 on Saturday February 17, 2024 @04:39AM (#39407921)
>Once you get to 100%

Once you get there you already fucked up. In Java covering 100% lines means in average case testing Lombok and every equals hash. If you're doing that you fucked up.

Re:Automated Unit Test Improvement Using Large Language Mode... by groestl on Saturday February 17, 2024 @05:11AM (#39408111)
I've seen broken hash implementations many times, so I'm not sure it would be a bad idea to require tests for them ;)

My other favourite of trivial code that's broken: returning the same Iterator instance in Iterable.iterator()

Re:Automated Unit Test Improvement Using Large Language Mode... by Ygg2 on Saturday February 17, 2024 @01:57PM (#39412295)
Broken or just working with Hibernate?

I remember hibernate recommending using static hash. In order to prevent saving entities changing hash values.