aboutsummaryrefslogtreecommitdiffstats
path: root/clients/common/common_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-16 01:00:13 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-16 01:00:13 +0200
commita8fd3fd6c8970bbf2d21e97c33fbb131f2fd4167 (patch)
tree7891a50fde70c1564758419d71c83180bd67e80e /clients/common/common_test.go
parentf7ec0637a509b063831d0f57e13840aff9a6d748 (diff)
downloadgo-git-a8fd3fd6c8970bbf2d21e97c33fbb131f2fd4167.tar.gz
clients/common: Endpoint SCP like support
Diffstat (limited to 'clients/common/common_test.go')
-rw-r--r--clients/common/common_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/clients/common/common_test.go b/clients/common/common_test.go
index 80934fc..d2d3696 100644
--- a/clients/common/common_test.go
+++ b/clients/common/common_test.go
@@ -22,6 +22,12 @@ func (s *SuiteCommon) TestNewEndpoint(c *C) {
c.Assert(e.String(), Equals, "ssh://git@github.com/user/repository.git")
}
+func (s *SuiteCommon) TestNewEndpointSCPLike(c *C) {
+ e, err := NewEndpoint("git@github.com:user/repository.git")
+ c.Assert(err, IsNil)
+ c.Assert(e.String(), Equals, "ssh://git@github.com/user/repository.git")
+}
+
func (s *SuiteCommon) TestNewEndpointWrongForgat(c *C) {
e, err := NewEndpoint("foo")
c.Assert(err, Not(IsNil))