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

mlange-42 / modo / 12757869420

13 Jan 2025 11:14PM CUT coverage: 34.783% (+10.5%) from 24.242%
12757869420

push

github

web-flow
Add unit test for collecting paths (#31)

0 of 1 new or added line in 1 file covered. (0.0%)

264 of 759 relevant lines covered (34.78%)

2.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/format/formats.go
1
package format
2

3
import (
4
        "text/template"
5

6
        "github.com/mlange-42/modo/document"
7
)
8

9
type Format uint8
10

11
const (
12
        Plain Format = iota
13
        MdBook
14
)
15

16
var formatters = []Formatter{
17
        &PlainFormatter{},
18
        &MdBookFormatter{},
19
}
20

21
type Config struct {
22
        Format          Format
23
        CaseInsensitive bool
24
}
25

26
func GetFormatter(f Format) Formatter {
×
27
        return formatters[f]
×
28
}
×
29

30
type Formatter interface {
31
        WriteAuxiliary(p *document.Package, dir string, t *template.Template) error
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