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

mlange-42 / modo / 12858520582

20 Jan 2025 12:21AM CUT coverage: 56.633% (-0.8%) from 57.418%
12858520582

Pull #73

github

web-flow
Merge 76145dc26 into ef546a39d
Pull Request #73: Fix cross-refs to package and module aliases

8 of 34 new or added lines in 7 files covered. (23.53%)

2 existing lines in 2 files now uncovered.

841 of 1485 relevant lines covered (56.63%)

8.1 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

11
func (f *PlainFormatter) Render(docs *document.Docs, config *document.Config) error {
×
12
        return document.Render(docs, config, f)
×
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
        }
×
NEW
27
        if len(p) == 0 {
×
NEW
28
                return p, nil
×
NEW
29
        }
×
UNCOV
30
        return p + ".md", nil
×
31
}
32

33
func (f *PlainFormatter) 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