push
github
91 of 120 new or added lines in 7 files covered. (75.83%)
5 existing lines in 2 files now uncovered.24331 of 37407 relevant lines covered (65.04%)
775.51 hits per line
1 |
package test
|
|
2 |
|
|
3 |
import "github.com/go-text/typesetting/font" |
|
4 |
|
|
5 |
type FontMap []font.Face
|
|
6 |
|
|
|
func (f FontMap) ResolveFace(r rune) font.Face { |
7✔ |
|
if len(f) == 1 { |
14✔ |
|
return f[0] |
7✔ |
|
} |
7✔ |
11 |
|
|
NEW
|
face := f.ResolveFace(r) |
× |
NEW
|
if face != nil { |
× |
NEW
|
return face
|
× |
NEW
|
} |
× |
16 |
|
|
NEW
|
return f[0] |
× |
18 |
} |