wire: make tests work with Go modules (google/go-cloud#331)
Generates go.mod files for test cases to support Go modules.
This commit is contained in:
@@ -17,8 +17,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bar"
|
||||
|
||||
"example.com/bar"
|
||||
"github.com/google/go-cloud/wire"
|
||||
)
|
||||
|
||||
|
||||
2
internal/wire/testdata/BuildTagsMainOnly/pkg
vendored
2
internal/wire/testdata/BuildTagsMainOnly/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -17,8 +17,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bar"
|
||||
|
||||
"example.com/bar"
|
||||
"github.com/google/go-cloud/wire"
|
||||
)
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
./foo
|
||||
./example.com/foo
|
||||
|
||||
2
internal/wire/testdata/Chain/pkg
vendored
2
internal/wire/testdata/Chain/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/Cleanup/pkg
vendored
2
internal/wire/testdata/Cleanup/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/CopyOtherDecls/pkg
vendored
2
internal/wire/testdata/CopyOtherDecls/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/Cycle/pkg
vendored
2
internal/wire/testdata/Cycle/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/EmptyVar/pkg
vendored
2
internal/wire/testdata/EmptyVar/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bar"
|
||||
"example.com/bar"
|
||||
"github.com/google/go-cloud/wire"
|
||||
)
|
||||
|
||||
|
||||
2
internal/wire/testdata/ExportedValue/pkg
vendored
2
internal/wire/testdata/ExportedValue/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
bar "bar"
|
||||
bar "example.com/bar"
|
||||
)
|
||||
|
||||
// Injectors from wire.go:
|
||||
|
||||
@@ -19,7 +19,7 @@ package main
|
||||
import (
|
||||
"os"
|
||||
|
||||
"bar"
|
||||
"example.com/bar"
|
||||
"github.com/google/go-cloud/wire"
|
||||
)
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -17,7 +17,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"foo"
|
||||
"example.com/foo"
|
||||
"github.com/google/go-cloud/wire"
|
||||
)
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"foo"
|
||||
"example.com/foo"
|
||||
"github.com/google/go-cloud/wire"
|
||||
)
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
bar
|
||||
example.com/bar
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
foo "foo"
|
||||
foo "example.com/foo"
|
||||
)
|
||||
|
||||
// Injectors from wire.go:
|
||||
|
||||
2
internal/wire/testdata/InjectInput/pkg
vendored
2
internal/wire/testdata/InjectInput/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/InjectWithPanic/pkg
vendored
2
internal/wire/testdata/InjectWithPanic/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/InterfaceBinding/pkg
vendored
2
internal/wire/testdata/InterfaceBinding/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/InterfaceValue/pkg
vendored
2
internal/wire/testdata/InterfaceValue/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
no provider found for foo.Foo
|
||||
no provider found for foo.Bar
|
||||
no provider found for example.com/foo.Foo
|
||||
no provider found for example.com/foo.Bar
|
||||
|
||||
2
internal/wire/testdata/NamingWorstCase/pkg
vendored
2
internal/wire/testdata/NamingWorstCase/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/NiladicIdentity/pkg
vendored
2
internal/wire/testdata/NiladicIdentity/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/NiladicValue/pkg
vendored
2
internal/wire/testdata/NiladicValue/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/NoopBuild/pkg
vendored
2
internal/wire/testdata/NoopBuild/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/PartialCleanup/pkg
vendored
2
internal/wire/testdata/PartialCleanup/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/PkgImport/foo/foo.go
vendored
2
internal/wire/testdata/PkgImport/foo/foo.go
vendored
@@ -17,7 +17,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"bar"
|
||||
"example.com/bar"
|
||||
"github.com/google/go-cloud/wire"
|
||||
)
|
||||
|
||||
|
||||
2
internal/wire/testdata/PkgImport/pkg
vendored
2
internal/wire/testdata/PkgImport/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
bar "bar"
|
||||
bar "example.com/bar"
|
||||
)
|
||||
|
||||
// Injectors from wire.go:
|
||||
|
||||
2
internal/wire/testdata/ReturnError/pkg
vendored
2
internal/wire/testdata/ReturnError/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/Struct/pkg
vendored
2
internal/wire/testdata/Struct/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/StructPointer/pkg
vendored
2
internal/wire/testdata/StructPointer/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/TwoDeps/pkg
vendored
2
internal/wire/testdata/TwoDeps/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bar"
|
||||
"example.com/bar"
|
||||
"github.com/google/go-cloud/wire"
|
||||
)
|
||||
|
||||
|
||||
2
internal/wire/testdata/UnexportedValue/pkg
vendored
2
internal/wire/testdata/UnexportedValue/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/UnusedProviders/pkg
vendored
2
internal/wire/testdata/UnusedProviders/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
unused provider set "unusedSet"
|
||||
unused provider "provideUnused"
|
||||
unused value of type string
|
||||
unused interface binding to type foo.Fooer
|
||||
unused interface binding to type example.com/foo.Fooer
|
||||
|
||||
2
internal/wire/testdata/ValueChain/pkg
vendored
2
internal/wire/testdata/ValueChain/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/ValueConversion/pkg
vendored
2
internal/wire/testdata/ValueConversion/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/VarValue/pkg
vendored
2
internal/wire/testdata/VarValue/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
2
internal/wire/testdata/Vendor/foo/wire.go
vendored
2
internal/wire/testdata/Vendor/foo/wire.go
vendored
@@ -17,7 +17,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bar"
|
||||
"example.com/bar"
|
||||
"github.com/google/go-cloud/wire"
|
||||
)
|
||||
|
||||
|
||||
2
internal/wire/testdata/Vendor/pkg
vendored
2
internal/wire/testdata/Vendor/pkg
vendored
@@ -1 +1 @@
|
||||
foo
|
||||
example.com/foo
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
bar "bar"
|
||||
bar "example.com/bar"
|
||||
)
|
||||
|
||||
// Injectors from wire.go:
|
||||
|
||||
Reference in New Issue
Block a user