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

Method TestString

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

Source from the content-addressed store, hash-verified

519}
520
521func (s *RemoteSuite) TestString(c *C) {
522 r := NewRemote(nil, &config.RemoteConfig{
523 Name: "foo",
524 URLs: []string{"https://github.com/git-fixtures/basic.git"},
525 })
526
527 c.Assert(r.String(), Equals, ""+
528 "foo\thttps://github.com/git-fixtures/basic.git (fetch)\n"+
529 "foo\thttps://github.com/git-fixtures/basic.git (push)",
530 )
531}
532
533func (s *RemoteSuite) TestPushToEmptyRepository(c *C) {
534 url, clean := s.TemporalDir()

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
NewRemoteFunction · 0.85

Tested by

no test coverage detected