-
Notifications
You must be signed in to change notification settings - Fork 1
/
main_test.go
49 lines (43 loc) · 835 Bytes
/
main_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package main
import (
"github.com/hauke96/sigolo/v2"
"testing"
"wiki2book/config"
)
// This file is used to profile the application with the IntelliJ CPU profiler, which only works on test files.
func testArticleGermanLong(t *testing.T) {
err := config.LoadConfig("../configs/de.json")
sigolo.FatalCheck(err)
generateArticleEbook(
"Commodore 128",
"../.wiki2book/profiling.epub",
"epub2",
"pandoc",
"../.wiki2book",
"",
"",
"../pandoc",
[]string{},
true,
true,
true,
)
}
func testProjectGerman(t *testing.T) {
err := config.LoadConfig("../configs/de.json")
sigolo.FatalCheck(err)
generateProjectEbook(
"../projects/de/astronomie/astronomie.json",
"../.wiki2book/profiling.epub",
"epub2",
"pandoc",
"../.wiki2book",
"",
"",
"../pandoc",
[]string{},
true,
true,
true,
)
}