internal/wire: copy over anonymous imports (#101)
Adds Kumbirai Tanekha to A+C. Fixes #94
This commit is contained in:
committed by
Ross Light
parent
4243b011bd
commit
f285c073b5
15
internal/wire/testdata/PkgImport/anon1/anon1.go
vendored
Normal file
15
internal/wire/testdata/PkgImport/anon1/anon1.go
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2018 The Wire Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// https://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package anon1
|
||||
15
internal/wire/testdata/PkgImport/anon2/anon2.go
vendored
Normal file
15
internal/wire/testdata/PkgImport/anon2/anon2.go
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2018 The Wire Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// https://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package anon2
|
||||
2
internal/wire/testdata/PkgImport/foo/wire.go
vendored
2
internal/wire/testdata/PkgImport/foo/wire.go
vendored
@@ -17,6 +17,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "example.com/anon1"
|
||||
_ "example.com/anon2"
|
||||
"github.com/google/wire"
|
||||
)
|
||||
|
||||
|
||||
@@ -9,6 +9,11 @@ import (
|
||||
"example.com/bar"
|
||||
)
|
||||
|
||||
import (
|
||||
_ "example.com/anon1"
|
||||
_ "example.com/anon2"
|
||||
)
|
||||
|
||||
// Injectors from wire.go:
|
||||
|
||||
func injectFooBar() FooBar {
|
||||
|
||||
Reference in New Issue
Block a user