phiryll / lexy

Lexicographical Byte Order Encodings
MIT License
0 stars 0 forks source link

Use distinct package for tests #23

Closed phiryll closed 2 weeks ago

phiryll commented 2 weeks ago

The test package for package foo should be named foo_test.

Note that this forces tests to only test exported behavior. This is a good thing, because it tests the API as clients see it, and is much more resilient to implementation changes.

A workaround to test unexported behavior is to create export_test.go to provide an exported identifier that will only be visible to tests.