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

mlange-42 / modo / 12771562747

14 Jan 2025 04:02PM CUT coverage: 33.838% (-0.2%) from 34.065%
12771562747

push

github

web-flow
Improve modularity, cleanup (#35)

* move link processing to Processor
* move collecting paths to Processor
* move link and path formatting to Formatter
* write auxiliary files from top-level render func

24 of 133 new or added lines in 8 files covered. (18.05%)

268 of 792 relevant lines covered (33.84%)

1.9 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
)
11

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

17
type Config struct {
18
        Format          Format
19
        CaseInsensitive bool
20
}
21

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