You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
Tests can have a different package from the package they're testing, such as with the stdlib package http / http_test (not to be confused with httptest). The most common reason for this structure is to avoid import cycles,
Currently we include both TestImpors and XTestImports when IncludeTests is set, which can cause the godepq dependency graph to have cycles. Cycles in the graph are problematic for functions like DepthLast.
The text was updated successfully, but these errors were encountered:
The most common reason for this structure is to avoid import cycles,
Hmm, I thought external tests were done to make it easier to test exported APIs of packages (i.e., you can be confident that an external package doesn't accidentally rely on some private unexported functionality). I didn't realize it had much to do with import cycles.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Tests can have a different package from the package they're testing, such as with the stdlib package
http / http_test
(not to be confused withhttptest
). The most common reason for this structure is to avoid import cycles,Currently we include both
TestImpors
andXTestImports
whenIncludeTests
is set, which can cause the godepq dependency graph to have cycles. Cycles in the graph are problematic for functions like DepthLast.The text was updated successfully, but these errors were encountered: