refactoring

This commit is contained in:
Dennis Jekubczyk
2021-05-24 16:59:21 +02:00
parent aabd00dbba
commit 5bde8d1f36
5 changed files with 73 additions and 33 deletions

View File

@@ -0,0 +1,13 @@
package app_test
import (
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
func TestApp(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "App Suite")
}

7
internal/app/mirror.go Normal file
View File

@@ -0,0 +1,7 @@
package app
import "github.com/jaedle/mirror-to-gitea/internal/config"
type ConfigReader interface {
Read() (*config.Config, error)
}

View File

@@ -0,0 +1,9 @@
package app_test
import (
. "github.com/onsi/ginkgo"
)
var _ = Describe("Mirror", func() {
})