|
@@ -81,13 +81,13 @@ func Test_getRealModule(t *testing.T) {
|
|
|
"Path":"foo",
|
|
|
"Dir":"/home/foo",
|
|
|
"GoMod":"/home/foo/go.mod",
|
|
|
- "GoVersion":"go1.18"
|
|
|
+ "GoVersion":"go1.19"
|
|
|
}
|
|
|
{
|
|
|
"Path":"bar",
|
|
|
"Dir":"/home/bar",
|
|
|
"GoMod":"/home/bar/go.mod",
|
|
|
- "GoVersion":"go1.18"
|
|
|
+ "GoVersion":"go1.19"
|
|
|
}`, nil
|
|
|
},
|
|
|
},
|
|
@@ -95,7 +95,7 @@ func Test_getRealModule(t *testing.T) {
|
|
|
Path: "bar",
|
|
|
Dir: "/home/bar",
|
|
|
GoMod: "/home/bar/go.mod",
|
|
|
- GoVersion: "go1.18",
|
|
|
+ GoVersion: "go1.19",
|
|
|
},
|
|
|
},
|
|
|
}
|
|
@@ -143,26 +143,26 @@ func TestDecodePackages(t *testing.T) {
|
|
|
"Path":"foo",
|
|
|
"Dir":"/home/foo",
|
|
|
"GoMod":"/home/foo/go.mod",
|
|
|
- "GoVersion":"go1.18"
|
|
|
+ "GoVersion":"go1.19"
|
|
|
}
|
|
|
{
|
|
|
"Path":"bar",
|
|
|
"Dir":"/home/bar",
|
|
|
"GoMod":"/home/bar/go.mod",
|
|
|
- "GoVersion":"go1.18"
|
|
|
+ "GoVersion":"go1.19"
|
|
|
}`),
|
|
|
want: []Module{
|
|
|
{
|
|
|
Path: "foo",
|
|
|
Dir: "/home/foo",
|
|
|
GoMod: "/home/foo/go.mod",
|
|
|
- GoVersion: "go1.18",
|
|
|
+ GoVersion: "go1.19",
|
|
|
},
|
|
|
{
|
|
|
Path: "bar",
|
|
|
Dir: "/home/bar",
|
|
|
GoMod: "/home/bar/go.mod",
|
|
|
- GoVersion: "go1.18",
|
|
|
+ GoVersion: "go1.19",
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -173,14 +173,14 @@ func TestDecodePackages(t *testing.T) {
|
|
|
"Path":"foo",
|
|
|
"Dir":"/home/foo",
|
|
|
"GoMod":"/home/foo/go.mod",
|
|
|
- "GoVersion":"go1.18"
|
|
|
+ "GoVersion":"go1.19"
|
|
|
}`),
|
|
|
want: []Module{
|
|
|
{
|
|
|
Path: "foo",
|
|
|
Dir: "/home/foo",
|
|
|
GoMod: "/home/foo/go.mod",
|
|
|
- GoVersion: "go1.18",
|
|
|
+ GoVersion: "go1.19",
|
|
|
},
|
|
|
},
|
|
|
},
|