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

mlange-42 / modo / 12775901286

14 Jan 2025 08:31PM CUT coverage: 34.058% (+0.2%) from 33.838%
12775901286

Pull #36

github

web-flow
Merge a0c741f43 into 2dc9d3121
Pull Request #36: Add Hugo export format

16 of 53 new or added lines in 7 files covered. (30.19%)

1 existing line in 1 file now uncovered.

282 of 828 relevant lines covered (34.06%)

2.1 hits per line

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

78.57
/format/plain.go
1
package format
2

3
import (
4
        "path"
5
        "text/template"
6

7
        "github.com/mlange-42/modo/document"
8
)
9

10
type PlainFormatter struct{}
11

12
func (f *PlainFormatter) ProcessMarkdown(name, summary, text string) (string, error) {
2✔
13
        return text, nil
2✔
14
}
2✔
15

16
func (f *PlainFormatter) WriteAuxiliary(p *document.Package, dir string, t *template.Template) error {
×
17
        return nil
×
18
}
×
19

20
func (f *PlainFormatter) ToFilePath(p string, kind string) (string, error) {
4✔
21
        if kind == "package" || kind == "module" {
6✔
22
                return path.Join(p, "_index.md"), nil
2✔
23
        }
2✔
24
        return p + ".md", nil
2✔
25
}
26

27
func (f *PlainFormatter) ToLinkPath(p string, kind string) (string, error) {
4✔
28
        return f.ToFilePath(p, kind)
4✔
29
}
4✔
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