Skip to content

Commit

Permalink
Merge pull request #60 from xushiwei/req
Browse files Browse the repository at this point in the history
modload: TestClassfile
  • Loading branch information
xushiwei authored Feb 10, 2024
2 parents 2f03835 + c012f5d commit 23b42d8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modload/regtest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ package modload_test
import (
"testing"

"github.com/goplus/mod/gopmod"
"github.com/goplus/mod/modload/modtest"
"golang.org/x/mod/module"
)

func TestGopClass(t *testing.T) {
Expand All @@ -29,3 +31,10 @@ func TestGopClass(t *testing.T) {
func TestImport(t *testing.T) {
modtest.Import(t)
}

func TestClassfile(t *testing.T) {
modVer := module.Version{Path: "github.com/goplus/yap", Version: "v0.5.0"}
if _, err := gopmod.LoadMod(modVer); err != nil {
t.Fatal("gopmod.LoadMod:", err)
}
}

0 comments on commit 23b42d8

Please sign in to comment.