Add comprehensive unit tests for services and main package

- Implement tests for the app service, including course processing from file and URI.
- Create mock implementations for CourseParser and Exporter to facilitate testing.
- Add tests for HTML cleaner service to validate HTML content cleaning functionality.
- Develop tests for the parser service, covering course fetching and loading from files.
- Introduce tests for utility functions in the main package, ensuring URI validation and string joining.
- Include benchmarks for performance evaluation of key functions.
This commit is contained in:
2025-05-25 15:23:48 +02:00
parent 9de7222ec3
commit b01260e765
17 changed files with 4431 additions and 191 deletions

9
go.mod
View File

@ -1,7 +1,10 @@
module github.com/kjanat/articulate-parser
go 1.21
go 1.23.0
require github.com/unidoc/unioffice v1.39.0
require github.com/fumiama/go-docx v0.0.0-20250506085032-0c30fd09304b
require github.com/richardlehane/msoleps v1.0.4 // indirect
require (
github.com/fumiama/imgsz v0.0.4 // indirect
golang.org/x/image v0.27.0 // indirect
)