github
91 of 120 new or added lines in 7 files covered. (75.83%)
24290 of 37331 relevant lines covered (65.07%)
777.99 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 |
} |