(b *testing.B)
| 193 | } |
| 194 | |
| 195 | func BenchmarkRefMultipleTimes(b *testing.B) { |
| 196 | fs := fixtures.Basic().ByTag(".git").One().DotGit() |
| 197 | refname := plumbing.ReferenceName("refs/remotes/origin/branch") |
| 198 | |
| 199 | dir := New(fs) |
| 200 | _, err := dir.Ref(refname) |
| 201 | if err != nil { |
| 202 | b.Fatalf("unexpected error: %s", err) |
| 203 | } |
| 204 | |
| 205 | for i := 0; i < b.N; i++ { |
| 206 | _, err := dir.Ref(refname) |
| 207 | if err != nil { |
| 208 | b.Fatalf("unexpected error: %s", err) |
| 209 | } |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | func (s *SuiteDotGit) TestRemoveRefFromReferenceFile(c *C) { |
| 214 | fs := fixtures.Basic().ByTag(".git").One().DotGit() |
nothing calls this directly
no test coverage detected