Skip to content

Conversation

@OneXeor
Copy link
Owner

@OneXeor OneXeor commented Jan 13, 2026

Summary

  • Set up kotlin.test infrastructure for multiplatform testing
  • Add comprehensive tests for common module classes

Tests Added

  • DownloadRequestBuilderTest - DSL builder, headers, auth configuration
  • DownloadProgressTest - Progress properties and helper methods
  • DownloadStateTest - Sealed class variants and when expressions
  • DownloadErrorTest - Error types and properties
  • KDownloaderConfigTest - Configuration defaults and custom values

Test Coverage

  • 5 test classes
  • 40+ test methods
  • Covers all public API of common module

Closes #6

- Set up kotlin.test infrastructure
- Add DownloadRequestBuilder tests (DSL, headers, auth)
- Add DownloadProgress tests (state properties)
- Add DownloadState tests (sealed class variants)
- Add DownloadError tests (error types)
- Add KDownloaderConfig tests

Closes #6
@OneXeor OneXeor merged commit 74d2d90 into main Jan 13, 2026
2 checks passed
@OneXeor OneXeor deleted the feature/unit-tests branch January 13, 2026 22:44
@OneXeor OneXeor self-assigned this Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Unit Tests

2 participants