(b *testing.B)
| 225 | } |
| 226 | |
| 227 | func BenchmarkRefMultipleTimes(b *testing.B) { |
| 228 | fs := fixtures.Basic().ByTag(".git").One().DotGit() |
| 229 | refname := plumbing.ReferenceName("refs/remotes/origin/branch") |
| 230 | |
| 231 | dir := New(fs) |
| 232 | _, err := dir.Ref(refname) |
| 233 | if err != nil { |
| 234 | b.Fatalf("unexpected error: %s", err) |
| 235 | } |
| 236 | |
| 237 | for i := 0; i < b.N; i++ { |
| 238 | _, err := dir.Ref(refname) |
| 239 | if err != nil { |
| 240 | b.Fatalf("unexpected error: %s", err) |
| 241 | } |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | func (s *SuiteDotGit) TestRemoveRefFromReferenceFile(c *C) { |
| 246 | fs := fixtures.Basic().ByTag(".git").One().DotGit() |
nothing calls this directly
no test coverage detected
searching dependent graphs…