Skip to content

Commit

Permalink
test: add test case: packages.GoListExportCacheSync
Browse files Browse the repository at this point in the history
  • Loading branch information
LiusCraft committed Feb 26, 2024
1 parent b2060d3 commit 27b6a9f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/imp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,13 @@ func Test_loadByExport(t *testing.T) {
FindExport(".", "C")
}

func TestGoListExportCacheSync(t *testing.T) {
GoListExportCacheSync("..")
p := NewImporter(nil, "..")
pkg, err := p.Import("github.com/goplus/gox/internal/foo")
if err != nil {
t.Fatal("Import failed:", pkg, err)
}
}

// ----------------------------------------------------------------------------

0 comments on commit 27b6a9f

Please sign in to comment.