-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from KoNekoD/refactor
Refactor
- Loading branch information
Showing
675 changed files
with
8,325 additions
and
16,574 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/KoNekoD/go-deptrac/pkg/infrastructure/app" | ||
) | ||
|
||
func main() { | ||
app.Run() | ||
} |
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,34 @@ | ||
package examples | ||
|
||
import ( | ||
"flag" | ||
"github.com/KoNekoD/go-deptrac/pkg/infrastructure/app" | ||
_ "github.com/KoNekoD/go-deptrac/resources" | ||
"os" | ||
"testing" | ||
) | ||
|
||
func TestRunSimpleCleanarch(t *testing.T) { | ||
t.Parallel() | ||
|
||
t.Run("simple_clean_arch", func(t *testing.T) { | ||
configArg := "--config=examples/simple_clean_arch/deptrac.yaml" | ||
os.Args = []string{"", configArg, "analyse"} | ||
flag.CommandLine = flag.NewFlagSet(os.Args[0], flag.ExitOnError) | ||
app.NewApp().Run() | ||
}) | ||
|
||
t.Run("simple_invalid_mvc", func(t *testing.T) { | ||
configArg := "--config=examples/simple_invalid_mvc/deptrac.yaml" | ||
os.Args = []string{"", configArg, "analyse"} | ||
flag.CommandLine = flag.NewFlagSet(os.Args[0], flag.ExitOnError) | ||
app.NewApp().Run() | ||
}) | ||
|
||
t.Run("simple_mvc", func(t *testing.T) { | ||
configArg := "--config=examples/simple_mvc/deptrac.yaml" | ||
os.Args = []string{"", configArg, "analyse"} | ||
flag.CommandLine = flag.NewFlagSet(os.Args[0], flag.ExitOnError) | ||
app.NewApp().Run() | ||
}) | ||
} |
2 changes: 1 addition & 1 deletion
2
...ects/examples/simple-cleanarch/app/app.go → examples/simple_clean_arch/app/app.go
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
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
module simple-cleanarch | ||
|
||
go 1.22 |
2 changes: 1 addition & 1 deletion
2
...mple-cleanarch/infrastructure/kv-store.go → ...ple_clean_arch/infrastructure/kv-store.go
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
4 changes: 1 addition & 3 deletions
4
...mple-invalid-mvc/controller/controller.go → ...mple_invalid_mvc/controller/controller.go
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
File renamed without changes.
File renamed without changes.
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
4 changes: 1 addition & 3 deletions
4
...mples/simple-mvc/controller/controller.go → examples/simple_mvc/controller/controller.go
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
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.