4 ms·
No, tests are commonly in the same package as the implementation. I did find this one: https://github.com/tenta-browser/tenta-dns/blob/master/src/tenta-dns/run
by pokstad 9y ago
No, tests are commonly in the same package as the implementation.
I did find this one: https://github.com/tenta-browser/tenta-dns/blob/master/src/tenta-dns/runtime/limiter_test.go https://github.com/tenta-browser/tenta-dns/blob/master/src/t...
That's an internal test, meaning it has access to the package internals. A better test would test from outside the boundaries of the package to only interact with exposed symbols.