INNER CODE UNIT · Go

Test_customerValidationEnabled

alexellis/derek · auth/customers_test.go:51

func Test_customerValidationEnabled(t *testing.T) {
	tests := []struct {
		title        string
		value        string
		expectedBool bool
	}{
		{
			title:        "`validate_customers` is unset, defaults to on",
			value:        "",
			expectedBool: true,
		},
		{
			title:        "`validate_customers` is set with random value, defaults to on",
			value:        "random",
			expectedBool: true,
		},
		{
			title:        "`validate_customers` is set with explicit `0`",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…