-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: gfanton <[email protected]>
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// This test file serves as a reference for the testdata directory tree. | ||
|
||
package packages | ||
|
||
// The structure of the testdata directory is as follows: | ||
// | ||
// testdata | ||
// ├── abc.xy | ||
// ├── nested | ||
// │ ├── a | ||
// │ │ └── gno.mod | ||
// │ └── nested | ||
// │ ├── b | ||
// │ │ └── gno.mod | ||
// │ └── c | ||
// │ └── gno.mod | ||
// └── pkg | ||
// ├── a | ||
// │ ├── file1.gno | ||
// │ └── gno.mod | ||
// ├── b // depends on a | ||
// │ ├── file1.gno | ||
// │ └── gno.mod | ||
// └── c // depends on b | ||
// ├── file1.gno | ||
// └── gno.mod | ||
|
||
const ( | ||
TestdataPkgA = "abc.xy/pkg/a" | ||
TestdataPkgB = "abc.xy/pkg/b" | ||
TestdataPkgC = "abc.xy/pkg/c" | ||
) | ||
|
||
// List of testdata package paths | ||
var testdataPkgs = []string{TestdataPkgA, TestdataPkgB, TestdataPkgC} | ||
|
||
const ( | ||
TestdataNestedA = "abc.xy/nested/a" // Path to nested package A | ||
TestdataNestedB = "abc.xy/nested/nested/b" // Path to nested package B | ||
TestdataNestedC = "abc.xy/nested/nested/c" // Path to nested package C | ||
) | ||
|
||
// List of nested package paths | ||
var testdataNested = []string{TestdataNestedA, TestdataNestedB, TestdataNestedC} |