MCPcopy Create free account
hub / github.com/go-git/go-git / TestFetchFastForwardFS

Method TestFetchFastForwardFS

remote_test.go:511–519  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

509}
510
511func (s *RemoteSuite) TestFetchFastForwardFS(c *C) {
512 fs, clean := s.TemporalFilesystem()
513 defer clean()
514
515 fss := filesystem.NewStorage(fs, cache.NewObjectLRUDefault())
516
517 // This exercises `storage.filesystem.Storage.CheckAndSetReference()`.
518 s.testFetchFastForward(c, fss)
519}
520
521func (s *RemoteSuite) TestString(c *C) {
522 r := NewRemote(nil, &config.RemoteConfig{

Callers

nothing calls this directly

Calls 4

testFetchFastForwardMethod · 0.95
NewStorageFunction · 0.92
NewObjectLRUDefaultFunction · 0.92
TemporalFilesystemMethod · 0.45

Tested by

no test coverage detected