Skip to content

Image manager tests#136

Merged
oleksiikolomiietssnapp merged 8 commits intonextfrom
feature/image-manager-tests
Nov 11, 2025
Merged

Image manager tests#136
oleksiikolomiietssnapp merged 8 commits intonextfrom
feature/image-manager-tests

Conversation

@oleksiikolomiietssnapp
Copy link
Collaborator

  • SnappThemingImageProcessorsRegistry changes:
    • add unregister method
    • make sure it's thread safe
    • refresh documentation
  • add tests for SnappThemingImageManager
  • fix warnings in tests code

- add unregister method
- make sure it's thread safe
- refresh documentation
…p-Mobile/SnappTheming into feature/image-manager-tests

# Conflicts:
#	Tests/SnappThemingTests/Mocks/MockExternalProcessor.swift
#	Tests/SnappThemingTests/SnappThemingImageManagerTests.swift
This was referenced Nov 10, 2025
@github-actions
Copy link

🛡️ Code Coverage Report

Target Lines Coverage
1 SnappTheming 2463 82.34%

Generated by Swift Coverage Action.

@oleksiikolomiietssnapp oleksiikolomiietssnapp merged commit 4439b7f into next Nov 11, 2025
1 check passed
@oleksiikolomiietssnapp oleksiikolomiietssnapp deleted the feature/image-manager-tests branch November 11, 2025 10:47
oleksiikolomiietssnapp added a commit that referenced this pull request Nov 11, 2025
Version bump to 0.1.3 combining multiple improvements across the framework:

- **URL Context for Image Processing** (#135): Extended
`SnappThemingExternalImageProcessorProtocol` to provide URL context alongside data to image
processors, critical for formats like SVG that need resource context
- **InsettableShape Support** (#130): Upgraded `SnappThemingShapeType` to support
`InsettableShape` builder pattern for better SwiftUI integration
- **Swift 6 Migration** (#129): Migrated example apps to Swift 6 with related compatibility fixes
- **Caching Improvements**: Ensured images are cached before extraction to prevent rendering
issues when switching themes
- **Image Manager Testing & Registry Enhancements** (#136)
  - Full unit test suite for `SnappThemingImageManager`
  functionality
  - Added `unregister()` method for dynamic processor lifecycle management
  - Ensured thread-safe access to `SnappThemingImageProcessorsRegistry`
  - Refreshed and clarified registry API documentation
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.

2 participants