-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Ensure that imports are not removed in generated code (#406)"
This reverts commit ffd6daa.
- Loading branch information
Showing
7 changed files
with
22 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package imports | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/palantir/conjure-go/v6/integration_test/testgenerated/imports/pkg3/api" | ||
) | ||
|
||
// TestImportNameConflict ensures that we can import a type which includes types of the same package name. | ||
// This is only testing that the relevant code compiles, and does not do anything in the test body. | ||
func TestImportNameConflict(t *testing.T) { | ||
_ = api.Union{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
integration_test/testgenerated/imports/pkg4/v2/structs.conjure.go
This file was deleted.
Oops, something went wrong.