INNER CODE UNIT · Go

Test_getContributingURL

alexellis/derek · main_test.go:8

func Test_getContributingURL(t *testing.T) {
	var TestCases = []struct {
		Name            string
		ContributingURL string
		Owner           string
		RepositoryName  string
		ExpectedOuptput string
	}{
		{
			Name:            "Empty contributing URL",
			ContributingURL: "",
			Owner:           "openfaas",
			RepositoryName:  "faas",
			ExpectedOuptput: "https://github.com/openfaas/faas/blob/master/CONTRIBUTING.md",
		},
		{
			Name:            "Non empty contributing URL",
			ContributingURL: "https://github.com/openfaas/faas/blob/master/CONTRIBUTING.md",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…