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

mlange-42 / modo / 12813458655

16 Jan 2025 04:38PM CUT coverage: 37.068% (+0.2%) from 36.851%
12813458655

push

github

web-flow
Improve code structure (#44)

* rename methods
* convert functions to methods, simplify signature
* add a method for adding link targets

26 of 94 new or added lines in 5 files covered. (27.66%)

12 existing lines in 2 files now uncovered.

450 of 1214 relevant lines covered (37.07%)

2.7 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

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

9
type PlainFormatter struct{}
10

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

15
func (f *PlainFormatter) WriteAuxiliary(p *document.Package, dir string, proc *document.Processor) error {
×
16
        return nil
×
17
}
×
18

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

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