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

mlange-42 / modo / 12976417773

26 Jan 2025 04:29PM CUT coverage: 58.343% (-2.4%) from 60.763%
12976417773

Pull #119

github

web-flow
Merge 6e543a5bd into d643b4693
Pull Request #119: Test markdown files

8 of 90 new or added lines in 4 files covered. (8.89%)

2 existing lines in 1 file now uncovered.

993 of 1702 relevant lines covered (58.34%)

28.57 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

11
func (f *Plain) Accepts(files []string) error {
×
12
        return nil
×
13
}
×
14

15
func (f *Plain) Render(docs *document.Docs, config *document.Config, subdir string) error {
×
16
        return document.Render(docs, config, f, subdir)
×
17
}
×
18

19
func (f *Plain) ProcessMarkdown(element any, text string, proc *document.Processor) (string, error) {
×
20
        return text, nil
×
21
}
×
22

23
func (f *Plain) WriteAuxiliary(p *document.Package, dir string, proc *document.Processor) error {
×
24
        return nil
×
25
}
×
26

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

37
func (f *Plain) ToLinkPath(p string, kind string) (string, error) {
×
38
        return f.ToFilePath(p, kind)
×
39
}
×
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