mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Add test for IsTextFile()
This commit is contained in:
		| @@ -176,6 +176,10 @@ func TestIsLetter(t *testing.T) { | |||||||
| 	assert.False(t, IsLetter('$')) | 	assert.False(t, IsLetter('$')) | ||||||
| } | } | ||||||
|  |  | ||||||
| // TODO: IsTextFile() | func TestIsTextFile(t *testing.T) { | ||||||
| // TODO: IsImageFile() | 	assert.True(t, IsTextFile([]byte{})) | ||||||
| // TODO: IsPDFFile() | 	assert.True(t, IsTextFile([]byte("lorem ipsum"))) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // TODO: IsImageFile(), currently no idea how to test | ||||||
|  | // TODO: IsPDFFile(), currently no idea how to test | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user