Skip to content

Commit

Permalink
chore: missing file
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Jan 23, 2025
1 parent eebb0bc commit 3289bc3
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions contribs/gnodev/pkg/packages/testdata_test.go
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}

0 comments on commit 3289bc3

Please sign in to comment.