From c57811fab1cfa98ade7dc656ff369b073445bcb1 Mon Sep 17 00:00:00 2001 From: Antoine Aflalo <197810+Belphemur@users.noreply.github.com> Date: Tue, 27 Aug 2024 10:27:13 -0400 Subject: [PATCH] test: rename method for clarity --- converter/converter_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/converter/converter_test.go b/converter/converter_test.go index 31f59e7..fe476a6 100644 --- a/converter/converter_test.go +++ b/converter/converter_test.go @@ -17,15 +17,15 @@ func TestConvertChapter(t *testing.T) { }{ { name: "All split pages", - genTestChapter: loadTestChapterSplit, + genTestChapter: genBigPages, }, { name: "No split pages", - genTestChapter: loadTestChapterNoSplit, + genTestChapter: genSmallPages, }, { name: "Mix of split and no split pages", - genTestChapter: loadTestChapterMixSplit, + genTestChapter: genMixSmallBig, }, } // Load test genTestChapter from testdata @@ -74,7 +74,7 @@ func TestConvertChapter(t *testing.T) { } } -func loadTestChapterSplit(path string) (*packer.Chapter, error) { +func genBigPages(path string) (*packer.Chapter, error) { file, err := os.Open(path) if err != nil { return nil, err @@ -103,7 +103,7 @@ func loadTestChapterSplit(path string) (*packer.Chapter, error) { }, nil } -func loadTestChapterNoSplit(path string) (*packer.Chapter, error) { +func genSmallPages(path string) (*packer.Chapter, error) { file, err := os.Open(path) if err != nil { return nil, err @@ -132,7 +132,7 @@ func loadTestChapterNoSplit(path string) (*packer.Chapter, error) { }, nil } -func loadTestChapterMixSplit(path string) (*packer.Chapter, error) { +func genMixSmallBig(path string) (*packer.Chapter, error) { file, err := os.Open(path) if err != nil { return nil, err