6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-05 00:54:41 +00:00
Files
git-get/branch_test.go
2020-05-18 17:35:32 +02:00

19 lines
302 B
Go

package main
import (
"fmt"
"testing"
git "github.com/libgit2/git2go/v30"
)
func TestBranches(t *testing.T) {
repo, err := git.OpenRepository("/home/grdl/workspace/gitlab.com/grdl/git-get")
checkFatal(t, err)
branches, err := Branches(repo)
checkFatal(t, err)
fmt.Println(len(branches))
}