shorten test func name
This commit is contained in:
parent
8eb90511f0
commit
f1f6487f0d
|
@ -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")
|
||||||
|
|
Reference in New Issue