Add unit test for constantTimeCompare.
This commit is contained in:
+2
-1
@@ -13,10 +13,11 @@ import (
|
||||
|
||||
func TestConstantTimeCompare(t *testing.T) {
|
||||
tests := []struct {
|
||||
a, b string
|
||||
a, b string
|
||||
}{
|
||||
{"", ""},
|
||||
{"a", "a"},
|
||||
{"a", "b"},
|
||||
{"foo", "foo"},
|
||||
{"foo", "bar"},
|
||||
{"foo", "foo1"},
|
||||
|
||||
Reference in New Issue
Block a user