MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / TestResolveEmptyCurrentRef

Function TestResolveEmptyCurrentRef

git/git_test.go:323–333  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

321}
322
323func TestResolveEmptyCurrentRef(t *testing.T) {
324 repo := test.NewRepo(t)
325 repo.Pushd()
326 defer func() {
327 repo.Popd()
328 repo.Cleanup()
329 }()
330
331 _, err := CurrentRef()
332 assert.NotEqual(t, nil, err)
333}
334
335func TestWorktrees(t *testing.T) {
336 // Only git 2.5+

Callers

nothing calls this directly

Calls 4

PushdMethod · 0.95
PopdMethod · 0.95
CleanupMethod · 0.95
CurrentRefFunction · 0.85

Tested by

no test coverage detected