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

mlange-42 / modo / 12735411713

12 Jan 2025 04:55PM CUT coverage: 27.019% (-0.6%) from 27.616%
12735411713

Pull #22

github

web-flow
Merge 3216782d8 into 8ef5b975a
Pull Request #22: Use templates to generate paths

3 of 25 new or added lines in 1 file covered. (12.0%)

6 existing lines in 1 file now uncovered.

97 of 359 relevant lines covered (27.02%)

1.41 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