-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
* fix: add func for git origin * move test; deadcode * timestamp
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,22 @@ func init() { | |
logrus.SetFormatter(formatter) | ||
} | ||
|
||
type testGitRemote struct { | ||
path string | ||
expectedRemote string | ||
} | ||
|
||
func TestGetGitRemoveOriginURL(t *testing.T) { | ||
r := require.New(t) | ||
tests := []testGitRemote{ | ||
{path: ".", expectedRemote: "[email protected]:chanzuckerberg/fogg"}, | ||
} | ||
for _, test := range tests { | ||
remote := getGitRemoteOriginURL(test.path) | ||
r.Equal(test.expectedRemote, remote) | ||
} | ||
} | ||
|
||
func randomString(n int) string { | ||
var letter = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,22 +8,6 @@ import ( | |
"github.com/stretchr/testify/require" | ||
) | ||
|
||
type testGitRemote struct { | ||
path string | ||
expectedRemote string | ||
} | ||
|
||
func TestGetGitRemoveOriginURL(t *testing.T) { | ||
r := require.New(t) | ||
tests := []testGitRemote{ | ||
{path: ".", expectedRemote: "[email protected]:chanzuckerberg/fogg"}, | ||
} | ||
for _, test := range tests { | ||
remote := getGitRemoteOriginURL(test.path) | ||
r.Equal(test.expectedRemote, remote) | ||
} | ||
} | ||
|
||
func TestReadConfig(t *testing.T) { | ||
r := require.New(t) | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.