mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-14 05:52:43 +00:00
Hash App token (#6724)
This commit is contained in:
parent
1fa9662946
commit
46373e7657
16 changed files with 239 additions and 44 deletions
|
@ -53,6 +53,13 @@ func TestEncodeSha1(t *testing.T) {
|
|||
)
|
||||
}
|
||||
|
||||
func TestEncodeSha256(t *testing.T) {
|
||||
assert.Equal(t,
|
||||
"c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2",
|
||||
EncodeSha256("foobar"),
|
||||
)
|
||||
}
|
||||
|
||||
func TestShortSha(t *testing.T) {
|
||||
assert.Equal(t, "veryverylo", ShortSha("veryverylong"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue