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

mlange-42 / modo / 12845272312

18 Jan 2025 03:31PM CUT coverage: 59.033%. Remained the same
12845272312

push

github

web-flow
Fix README, update CHANGELOG (#65)

794 of 1345 relevant lines covered (59.03%)

7.46 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
        }
×
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