mirror of
https://github.com/golang/go
synced 2024-11-19 00:54:42 -07:00
2529d2857a
This change standardizes the folder structure for testdata that are used for testing the lsp. In particular, it uses the following format: - dir - primarymod - .go files - packages - go.mod (optional) - modules - repoa - mod1 - .go files - packages - go.mod (optional) As we can see, any folder inside of testdata should be of this format, where the primary test files with the markers are all located inside the primarymod folder. The modules folder is used to hold any potential dependencies that are used for testing. A consequence of this change is that we can have one directory separated by folders, where each folder is it's own module, this allows us to use internal/lsp/tests with go.mod files. Now, tests.Load() will return an array of Data objects, where each object corresponds to one of the directories structured above. Updates golang/go#36091 Change-Id: I437cc2a2a9fc1bac93779845737aa74383fbf9c3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/217541 Run-TryBot: Rohan Challa <rohan@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
go.mod | ||
main.go | ||
summary.txt.golden |