• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

coyim / coyim / 20147813265

11 Dec 2025 09:21PM UTC coverage: 38.317% (+0.1%) from 38.192%
20147813265

push

olabini
#882 - Remove the use of esc for css definitions

0 of 5 new or added lines in 1 file covered. (0.0%)

12128 of 31652 relevant lines covered (38.32%)

2.54 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/gui/css/reader.go
1
package css
2

3
import (
4
        "embed"
5
        "io/fs"
6
        "path"
7

8
        "github.com/sirupsen/logrus"
9
)
10

11
//go:embed definitions
12
var files embed.FS
13

14
// Get will return the CSS string corresponding to the name given
15
func Get(name string) string {
×
NEW
16
        content, e := fs.ReadFile(files, path.Join("definitions", name))
×
NEW
17
        if e != nil {
×
NEW
18
                logrus.WithError(e).WithField("definition", name).Panic("No definition found")
×
NEW
19
        }
×
NEW
20
        return string(content)
×
21
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc