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

mlange-42 / modo / 12969378853

25 Jan 2025 11:35PM CUT coverage: 61.534%. Remained the same
12969378853

push

github

web-flow
Simplify formatter names (#117)

0 of 23 new or added lines in 3 files covered. (0.0%)

987 of 1604 relevant lines covered (61.53%)

29.39 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 Plain struct{}
10

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

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

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

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

NEW
33
func (f *Plain) ToLinkPath(p string, kind string) (string, error) {
×
34
        return f.ToFilePath(p, kind)
×
35
}
×
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