Rule Testing

Test Public API

Test through public interfaces, not private internals

testingapiencapsulation
CLAUDE.md

Test through public interfaces, not private internals. If you need to test a private function, it’s either important enough to extract and make public, or it’s covered by testing the public API.

Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.

get crystl