Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Index all test code in the current module #134

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

varungandhi-src
Copy link
Contributor

@varungandhi-src varungandhi-src commented Sep 24, 2024

The fix is basically a one-liner; most of the diff is because of
snapshot changes. Fixes https://linear.app/sourcegraph/issue/GRAPH-866

With this patch, the scip-go index size for the Sourcegraph monorepo grows
from 4012 documents (144MB uncompressed) to 5422 documents (208MB).

Comment on lines +1 to +3
package testspecial

func TestFoo_Whitebox() { Foo() }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As of the first commit, the snapshot test is (incorrectly) not generating foo_test.go in the output directory. This is fixed in the second commit.

@varungandhi-src varungandhi-src merged commit 8a54a26 into main Sep 24, 2024
3 checks passed
@varungandhi-src varungandhi-src deleted the vg/index-test-code branch September 24, 2024 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant