github
89 of 118 new or added lines in 6 files covered. (75.42%)
24287 of 37329 relevant lines covered (65.06%)
777.86 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 |
} |