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

mlange-42 / modo / 13162005183

05 Feb 2025 04:28PM CUT coverage: 72.707%. Remained the same
13162005183

Pull #206

github

web-flow
Merge 323cbe4df into 30d34556d
Pull Request #206: Fix souce links for packages with upper-case characters

1 of 2 new or added lines in 1 file covered. (50.0%)

1649 of 2268 relevant lines covered (72.71%)

26.89 hits per line

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

57.14
/internal/format/util.go
1
package format
2

3
import (
4
        "errors"
5
        "os"
6
)
7

8
func mkDirs(path string) error {
13✔
9
        if err := os.MkdirAll(path, os.ModePerm); err != nil && !os.IsExist(err) {
13✔
10
                return err
×
11
        }
×
12
        return nil
13✔
13
}
14

15
func emptyDir(dir string) error {
5✔
16
        if err := os.RemoveAll(dir); err != nil {
5✔
17
                return err
×
18
        }
×
19
        return mkDirs(dir)
5✔
20
}
21

22
func fileExists(file string) (exists, isDir bool, err error) {
5✔
23
        var s os.FileInfo
5✔
24
        if s, err = os.Stat(file); err == nil {
5✔
25
                exists = true
×
26
                isDir = s.IsDir()
×
27
                return
×
28
        } else if !errors.Is(err, os.ErrNotExist) {
5✔
29
                return
×
30
        }
×
31
        err = nil
5✔
32
        return
5✔
33
}
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

© 2025 Coveralls, Inc