mirror of
https://github.com/grdl/git-get.git
synced 2026-02-05 00:54:41 +00:00
19 lines
302 B
Go
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))
|
|
}
|