(t *testing.T)
| 215 | } |
| 216 | |
| 217 | func TestReferenceNameIsValid(t *testing.T) { |
| 218 | t.Parallel() |
| 219 | valid, err := ReferenceNameIsValid("HEAD") |
| 220 | checkFatal(t, err) |
| 221 | if !valid { |
| 222 | t.Errorf("HEAD should be a valid reference name") |
| 223 | } |
| 224 | valid, err = ReferenceNameIsValid("HEAD1") |
| 225 | checkFatal(t, err) |
| 226 | if valid { |
| 227 | t.Errorf("HEAD1 should not be a valid reference name") |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | func TestReferenceNormalizeName(t *testing.T) { |
| 232 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…