INNER CODE UNIT · Go

Test_findCustomerURL

alexellis/derek · auth/customers_test.go:11

func Test_findCustomerURL(t *testing.T) {

	var URIOpts = []struct {
		title       string
		envVar      string
		expectedURL string
	}{
		{
			title:       "No ENV var",
			envVar:      "",
			expectedURL: defaultCustomersURL,
		},
		{
			title:       "ENV var exists",
			envVar:      "https://raw.githubusercontent.com/rgee0/derek/master/.CUSTOMERS",
			expectedURL: "https://raw.githubusercontent.com/rgee0/derek/master/.CUSTOMERS",
		},
		{

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…