mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 03:21:49 +01:00
Add test for IsTextFile()
This commit is contained in:
parent
95d4cd9292
commit
e74868a850
1 changed files with 7 additions and 3 deletions
|
@ -176,6 +176,10 @@ func TestIsLetter(t *testing.T) {
|
|||
assert.False(t, IsLetter('$'))
|
||||
}
|
||||
|
||||
// TODO: IsTextFile()
|
||||
// TODO: IsImageFile()
|
||||
// TODO: IsPDFFile()
|
||||
func TestIsTextFile(t *testing.T) {
|
||||
assert.True(t, IsTextFile([]byte{}))
|
||||
assert.True(t, IsTextFile([]byte("lorem ipsum")))
|
||||
}
|
||||
|
||||
// TODO: IsImageFile(), currently no idea how to test
|
||||
// TODO: IsPDFFile(), currently no idea how to test
|
||||
|
|
Loading…
Reference in a new issue