mirror of https://github.com/gogits/gogs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
499 B
25 lines
499 B
12 years ago
|
// Copyright (c) 2013 GPMGo Members. All rights reserved.
|
||
|
// Use of this source code is governed by a MIT-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
package utils
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
var RemotePaths = []string{
|
||
|
"github.com/coocood/qbs",
|
||
|
"code.google.com/p/draw2d",
|
||
|
"launchpad.net/goamz",
|
||
|
"bitbucket.org/gotamer/conv",
|
||
|
}
|
||
|
|
||
|
func TestIsValidRemotePath(t *testing.T) {
|
||
|
for _, p := range RemotePaths {
|
||
|
if !IsValidRemotePath(p) {
|
||
|
t.Errorf("Invalid remote path: %s", p)
|
||
|
}
|
||
|
}
|
||
|
}
|