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

mlange-42 / modo / 12775901286

14 Jan 2025 08:31PM CUT coverage: 34.058% (+0.2%) from 33.838%
12775901286

Pull #36

github

web-flow
Merge a0c741f43 into 2dc9d3121
Pull Request #36: Add Hugo export format

16 of 53 new or added lines in 7 files covered. (30.19%)

1 existing line in 1 file now uncovered.

282 of 828 relevant lines covered (34.06%)

2.1 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 "github.com/mlange-42/modo/document"
4

5
type Format uint8
6

7
const (
8
        Plain Format = iota
9
        MdBook
10
        Hugo
11
)
12

13
var formatters = []document.Formatter{
14
        &PlainFormatter{},
15
        &MdBookFormatter{},
16
        &HugoFormatter{},
17
}
18

19
type Config struct {
20
        Format          Format
21
        CaseInsensitive bool
22
}
23

24
func GetFormatter(f Format) document.Formatter {
×
25
        return formatters[f]
×
26
}
×
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