diff options
| author | lhchavez <[email protected]> | 2021-09-03 06:40:31 -0700 |
|---|---|---|
| committer | lhchavez <[email protected]> | 2021-09-05 18:52:01 -0700 |
| commit | 018647fd481a7eb4af97d5f61afc0fddfe76fc24 (patch) | |
| tree | 06f4af28f0298ffe4bd93d2061f7eb8c52518bc2 /reference_test.go | |
| parent | b78bde3d74b1617d5b635723552aaec0583eb054 (diff) | |
libgit2 v1.2.0 #major
This commit introduces libgit2 v1.2.0 to git2go, which brings a large
number of [bugfixes and
features](https://github.com/libgit2/libgit2/releases/tag/v1.2.0).
This also marks the start of the v32 release.
Diffstat (limited to 'reference_test.go')
| -rw-r--r-- | reference_test.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/reference_test.go b/reference_test.go index 285adb5..46c9e7f 100644 --- a/reference_test.go +++ b/reference_test.go @@ -214,12 +214,16 @@ func TestIsNote(t *testing.T) { } } -func TestReferenceIsValidName(t *testing.T) { +func TestReferenceNameIsValid(t *testing.T) { t.Parallel() - if !ReferenceIsValidName("HEAD") { + valid, err := ReferenceNameIsValid("HEAD") + checkFatal(t, err) + if !valid { t.Errorf("HEAD should be a valid reference name") } - if ReferenceIsValidName("HEAD1") { + valid, err = ReferenceNameIsValid("HEAD1") + checkFatal(t, err) + if valid { t.Errorf("HEAD1 should not be a valid reference name") } } |
