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

mlange-42 / modo / 12818254039

16 Jan 2025 09:52PM CUT coverage: 35.271% (-1.1%) from 36.349%
12818254039

Pull #48

github

web-flow
Merge 07b6c4ea0 into 6785e722a
Pull Request #48: Custom template overwrites

6 of 45 new or added lines in 5 files covered. (13.33%)

443 of 1256 relevant lines covered (35.27%)

2.62 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