INNER CODE UNIT · Go

Test_customerValidation

alexellis/derek · main_test.go:40

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…