woodpecker-ssg-deploy/main_test.go
Alexander "PapaTutuWawa 510e60a42e
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
Initial commit
2024-01-05 22:21:16 +01:00

16 lines
313 B
Go

package main
import (
"testing"
)
func TestInsertToken(t *testing.T) {
res, err := insertToken("test-token", "https://git.example.org/user/repo.git")
if err != nil {
t.Fatalf("Error: %v", err)
}
if res != "https://test-token@git.example.org/user/repo.git" {
t.Fatalf("Unexpected output: %s", res)
}
}