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

mlange-42 / modo / 12835912779

17 Jan 2025 07:54PM CUT coverage: 57.991% (+0.06%) from 57.927%
12835912779

Pull #58

github

web-flow
Merge 0eafdfbe6 into 45ab35eb0
Pull Request #58: Tweak CLI help, improve code structure

13 of 33 new or added lines in 6 files covered. (39.39%)

762 of 1314 relevant lines covered (57.99%)

6.88 hits per line

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

0.0
/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

NEW
11
func (f *PlainFormatter) Render(docs *document.Docs, config *document.Config) error {
×
NEW
12
        return document.Render(docs, config, f)
×
NEW
13
}
×
14

15
func (f *PlainFormatter) ProcessMarkdown(element any, text string, proc *document.Processor) (string, error) {
×
16
        return text, nil
×
17
}
×
18

19
func (f *PlainFormatter) WriteAuxiliary(p *document.Package, dir string, proc *document.Processor) error {
×
20
        return nil
×
21
}
×
22

23
func (f *PlainFormatter) ToFilePath(p string, kind string) (string, error) {
×
24
        if kind == "package" || kind == "module" {
×
25
                return path.Join(p, "_index.md"), nil
×
26
        }
×
27
        return p + ".md", nil
×
28
}
29

30
func (f *PlainFormatter) ToLinkPath(p string, kind string) (string, error) {
×
31
        return f.ToFilePath(p, kind)
×
32
}
×
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