aboutsummaryrefslogtreecommitdiff
path: root/watcher_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-12-10 03:05:13 +0700
committerShulhan <ms@kilabit.info>2023-12-10 03:05:13 +0700
commitd4129bf1f9ea8fedaf273a50347a0c62b6ec07e0 (patch)
tree7541268704b4902aff6b214c4ef109d8f932d4a1 /watcher_test.go
parent582deec99c0028a6759cfc70f2edd05a98547827 (diff)
downloadciigo-d4129bf1f9ea8fedaf273a50347a0c62b6ec07e0.tar.xz
all: fix all warnings reported by linter revive
Unfortunately, this breaks some API and exported fields, but its better than creating revive.toml file to add an exception. Some breaking changes, * Field [ConvertOptions.HtmlTemplate] become [ConvertOptions.HTMLTemplate] * Method [Converter.SetHtmlTemplateFile] become [Converter.SetHTMLTemplateFile] * Method [Converter.ToHtmlFile] become [Converter.ToHTMLFile]
Diffstat (limited to 'watcher_test.go')
-rw-r--r--watcher_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/watcher_test.go b/watcher_test.go
index 7aa7d22..7937973 100644
--- a/watcher_test.go
+++ b/watcher_test.go
@@ -84,7 +84,7 @@ func TestWatcher(t *testing.T) {
func testAdocCreate(t *testing.T, testWatcher *watcher, tdata *test.Data, pathFile string) {
var (
- expBody []byte = tdata.Input[`create.adoc`]
+ expBody = tdata.Input[`create.adoc`]
got *FileMarkup
err error
@@ -104,7 +104,7 @@ func testAdocCreate(t *testing.T, testWatcher *watcher, tdata *test.Data, pathFi
test.Assert(t, `New adoc file created`, pathFile, got.path)
- gotBody, err = os.ReadFile(got.pathHtml)
+ gotBody, err = os.ReadFile(got.pathHTML)
if err != nil {
t.Fatal(err)
}
@@ -137,7 +137,7 @@ func testAdocUpdate(t *testing.T, testWatcher *watcher, tdata *test.Data, pathFi
test.Assert(t, `adoc file updated`, pathFile, got.path)
- gotBody, err = os.ReadFile(got.pathHtml)
+ gotBody, err = os.ReadFile(got.pathHTML)
if err != nil {
t.Fatal(err)
}
@@ -191,7 +191,7 @@ func testMarkdownCreate(t *testing.T, testWatcher *watcher, tdata *test.Data, pa
test.Assert(t, `New md file created`, pathFileMarkdown, got.path)
- gotBody, err = os.ReadFile(got.pathHtml)
+ gotBody, err = os.ReadFile(got.pathHTML)
if err != nil {
t.Fatal(err)
}
@@ -224,7 +224,7 @@ func testMarkdownUpdate(t *testing.T, testWatcher *watcher, tdata *test.Data, pa
test.Assert(t, `changes path`, pathFileMarkdown, got.path)
- gotBody, err = os.ReadFile(got.pathHtml)
+ gotBody, err = os.ReadFile(got.pathHTML)
if err != nil {
t.Fatal(err)
}