Skip to content

Commit

Permalink
fix: testdata packages
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Feb 6, 2025
1 parent e0f3375 commit 04c7a11
Show file tree
Hide file tree
Showing 24 changed files with 32 additions and 32 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package aa
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module abc.xy/nested/aa

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package bb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module abc.xy/nested/nested/bb

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package cc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module abc.xy/nested/nested/cc
1 change: 0 additions & 1 deletion contribs/gnodev/pkg/packages/testdata/abc.xy/pkg/a/gno.mod

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package a
package aa

type SA struct{}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module abc.xy/pkg/aa
5 changes: 0 additions & 5 deletions contribs/gnodev/pkg/packages/testdata/abc.xy/pkg/b/file.gno

This file was deleted.

1 change: 0 additions & 1 deletion contribs/gnodev/pkg/packages/testdata/abc.xy/pkg/b/gno.mod

This file was deleted.

5 changes: 5 additions & 0 deletions contribs/gnodev/pkg/packages/testdata/abc.xy/pkg/bb/file.gno
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package bb

import "abc.xy/pkg/aa"

type SB = aa.SA
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module abc.xy/pkg/bb
5 changes: 0 additions & 5 deletions contribs/gnodev/pkg/packages/testdata/abc.xy/pkg/c/file.gno

This file was deleted.

1 change: 0 additions & 1 deletion contribs/gnodev/pkg/packages/testdata/abc.xy/pkg/c/gno.mod

This file was deleted.

5 changes: 5 additions & 0 deletions contribs/gnodev/pkg/packages/testdata/abc.xy/pkg/cc/file.gno
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package cc

import "abc.xy/pkg/bb"

type SC = bb.SB
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module abc.xy/pkg/cc
24 changes: 12 additions & 12 deletions contribs/gnodev/pkg/packages/testdata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,37 @@ package packages
// testdata
// ├── abc.xy
// ├── nested
// │ ├── a
// │ ├── aa
// │ │ └── gno.mod
// │ └── nested
// │ ├── b
// │ ├── bb
// │ │ └── gno.mod
// │ └── c
// │ └── cc
// │ └── gno.mod
// └── pkg
// ├── a
// ├── aa
// │ ├── file1.gno
// │ └── gno.mod
// ├── b // depends on a
// ├── bb // depends on aa
// │ ├── file1.gno
// │ └── gno.mod
// └── c // depends on b
// └── cc // depends on bb
// ├── file1.gno
// └── gno.mod

const (
TestdataPkgA = "abc.xy/pkg/a"
TestdataPkgB = "abc.xy/pkg/b"
TestdataPkgC = "abc.xy/pkg/c"
TestdataPkgA = "abc.xy/pkg/aa"
TestdataPkgB = "abc.xy/pkg/bb"
TestdataPkgC = "abc.xy/pkg/cc"
)

// 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
TestdataNestedA = "abc.xy/nested/aa" // Path to nested package A
TestdataNestedB = "abc.xy/nested/nested/bb" // Path to nested package B
TestdataNestedC = "abc.xy/nested/nested/cc" // Path to nested package C
)

// List of nested package paths
Expand Down

0 comments on commit 04c7a11

Please sign in to comment.