test(config,git,logger): add some test functions

This commit is contained in:
Tom Neuber 2024-12-06 23:56:18 +01:00
parent 316e5de757
commit 1356128a7b
Signed by: tom
GPG key ID: F17EFE4272D89FF6
16 changed files with 387 additions and 25 deletions

14
pkg/git/project_test.go Normal file
View 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)
}