shorten test func name

This commit is contained in:
Weilin Shi 2020-02-18 15:13:05 +08:00
parent 8eb90511f0
commit f1f6487f0d
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ func TestNewMathExpr(t *testing.T) {
} }
} }
func TestCovNilFontError(t *testing.T) { func TestNilFontError(t *testing.T) {
temp := ttfFont temp := ttfFont
ttfFont = nil ttfFont = nil
@ -101,7 +101,7 @@ func (errReader) Read(_ []byte) (int, error) {
return 0, errors.New("") return 0, errors.New("")
} }
func TestCovReaderErr(t *testing.T) { func TestReaderErr(t *testing.T) {
err := LoadFontFromReader(errReader{}) err := LoadFontFromReader(errReader{})
if err == nil { if err == nil {
t.Fatal("Expect to get io.Reader error") t.Fatal("Expect to get io.Reader error")