Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Commit

Permalink
fix: changed module path
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-lejdung committed Aug 23, 2022
1 parent 732c087 commit 3e08de4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion format/format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ var testFiles = map[string][]byte{
import (
"net/http"
"github.com/swaggo/swag/format/testdata/api"
"github.com/chaintraced/swag/format/testdata/api"
)
// @title Swagger Example API
Expand Down
2 changes: 1 addition & 1 deletion golist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func TestGetAllGoFileInfoFromDepsByList(t *testing.T) {
name: "normal",
buildPackage: &build.Package{
Name: "main",
ImportPath: "github.com/swaggo/swag/testdata/golist",
ImportPath: "github.com/chaintraced/swag/testdata/golist",
Dir: "testdata/golist",
GoFiles: []string{"main.go"},
CgoFiles: []string{"api/api.go"},
Expand Down
2 changes: 1 addition & 1 deletion packages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestPackagesDefinitions_CollectAstFile(t *testing.T) {
Name: &ast.Ident{Name: "main.go"},
}

packageDir := "github.com/swaggo/swag/testdata/simple"
packageDir := "github.com/chaintraced/swag/testdata/simple"
assert.NoError(t, pd.CollectAstFile(packageDir, "testdata/simple/"+firstFile.Name.String(), firstFile))
assert.NotEmpty(t, pd.packages[packageDir])

Expand Down
14 changes: 7 additions & 7 deletions parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2138,9 +2138,9 @@ func TestParseTypeOverrides(t *testing.T) {

searchDir := "testdata/global_override"
p := New(SetOverrides(map[string]string{
"github.com/swaggo/swag/testdata/global_override/types.Application": "string",
"github.com/swaggo/swag/testdata/global_override/types.Application2": "github.com/swaggo/swag/testdata/global_override/othertypes.Application",
"github.com/swaggo/swag/testdata/global_override/types.ShouldSkip": "",
"github.com/chaintraced/swag/testdata/global_override/types.Application": "string",
"github.com/chaintraced/swag/testdata/global_override/types.Application2": "github.com/chaintraced/swag/testdata/global_override/othertypes.Application",
"github.com/chaintraced/swag/testdata/global_override/types.ShouldSkip": "",
}))
err := p.ParseAPI(searchDir, mainAPIFile, defaultParseDepth)
assert.NoError(t, err)
Expand Down Expand Up @@ -3271,14 +3271,14 @@ func TestParseFunctionScopedStructDefinition(t *testing.T) {
src := `
package main
// @Param request body main.Fun.request true "query params"
// @Param request body main.Fun.request true "query params"
// @Success 200 {object} main.Fun.response
// @Router /test [post]
func Fun() {
type request struct {
Name string
}
type response struct {
Name string
Child string
Expand Down Expand Up @@ -3306,14 +3306,14 @@ func TestParseFunctionScopedStructRequestResponseJSON(t *testing.T) {
src := `
package main
// @Param request body main.Fun.request true "query params"
// @Param request body main.Fun.request true "query params"
// @Success 200 {object} main.Fun.response
// @Router /test [post]
func Fun() {
type request struct {
Name string
}
type response struct {
Name string
Child string
Expand Down

0 comments on commit 3e08de4

Please sign in to comment.