test(config,git,logger): add some test functions
This commit is contained in:
parent
316e5de757
commit
1356128a7b
16 changed files with 387 additions and 25 deletions
14
pkg/git/project_test.go
Normal file
14
pkg/git/project_test.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package git_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.ar21.de/yolokube/grafana-backuper/pkg/git"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestNewProject(t *testing.T) {
|
||||
project := git.NewProject("https://example.com/repo.git")
|
||||
assert.NotNil(t, project)
|
||||
assert.Equal(t, "https://example.com/repo.git", project.RepoURL)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue