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

mlange-42 / modo / 12821068519

17 Jan 2025 01:47AM CUT coverage: 36.563%. Remained the same
12821068519

Pull #53

github

web-flow
Merge 0bfc5ef9a into bc43036f2
Pull Request #53: Add CLI help to README

468 of 1280 relevant lines covered (36.56%)

2.63 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(element any, text string, proc *document.Processor) (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