@@ -11,13 +11,6 @@ import (
11
11
"github.com/stretchr/testify/assert"
12
12
)
13
13
14
- func TestEncodeMD5 (t * testing.T ) {
15
- assert .Equal (t ,
16
- "3858f62230ac3c915f300c664312c63f" ,
17
- EncodeMD5 ("foobar" ),
18
- )
19
- }
20
-
21
14
func TestEncodeSha1 (t * testing.T ) {
22
15
assert .Equal (t ,
23
16
"8843d7f92416211de9ebb963ff4ce28125932878" ,
@@ -52,11 +45,6 @@ func TestBasicAuthDecode(t *testing.T) {
52
45
assert .Error (t , err )
53
46
}
54
47
55
- func TestBasicAuthEncode (t * testing.T ) {
56
- assert .Equal (t , "Zm9vOmJhcg==" , BasicAuthEncode ("foo" , "bar" ))
57
- assert .Equal (t , "MjM6IjotLS0t" , BasicAuthEncode ("23:\" " , "----" ))
58
- }
59
-
60
48
func TestVerifyTimeLimitCode (t * testing.T ) {
61
49
tc := []struct {
62
50
data string
@@ -167,29 +155,6 @@ func TestInt64sToStrings(t *testing.T) {
167
155
)
168
156
}
169
157
170
- func TestInt64sContains (t * testing.T ) {
171
- assert .True (t , Int64sContains ([]int64 {6 , 44324 , 4324 , 32 , 1 , 2323 }, 1 ))
172
- assert .True (t , Int64sContains ([]int64 {2323 }, 2323 ))
173
- assert .False (t , Int64sContains ([]int64 {6 , 44324 , 4324 , 32 , 1 , 2323 }, 232 ))
174
- }
175
-
176
- func TestIsLetter (t * testing.T ) {
177
- assert .True (t , IsLetter ('a' ))
178
- assert .True (t , IsLetter ('e' ))
179
- assert .True (t , IsLetter ('q' ))
180
- assert .True (t , IsLetter ('z' ))
181
- assert .True (t , IsLetter ('A' ))
182
- assert .True (t , IsLetter ('E' ))
183
- assert .True (t , IsLetter ('Q' ))
184
- assert .True (t , IsLetter ('Z' ))
185
- assert .True (t , IsLetter ('_' ))
186
- assert .False (t , IsLetter ('-' ))
187
- assert .False (t , IsLetter ('1' ))
188
- assert .False (t , IsLetter ('$' ))
189
- assert .False (t , IsLetter (0x00 ))
190
- assert .False (t , IsLetter (0x93 ))
191
- }
192
-
193
158
// TODO: Test EntryIcon
194
159
195
160
func TestSetupGiteaRoot (t * testing.T ) {
0 commit comments