Skip to content

Add font config and asset loading tests#274

Merged
mfazekas merged 3 commits into
feat/rive-ios-experimentalfrom
test/font-asset-coverage
May 29, 2026
Merged

Add font config and asset loading tests#274
mfazekas merged 3 commits into
feat/rive-ios-experimentalfrom
test/font-asset-coverage

Conversation

@mfazekas
Copy link
Copy Markdown
Collaborator

Adds harness tests for two previously untested areas:

Font config (6 tests): loadFont by system name, loadFont by URL, systemFallback, setFallbackFonts with default/weight-specific fonts, clearFallbackFonts, error on invalid font name.

Asset loading (4 tests): referencedAssets with font type, image URL type, multiple asset types, and undefined assets.

Covers HybridRiveFontConfig.swift (was 0%), AssetLoader.swift (was 1%), DataSourceResolver.swift (was 0%), HTTPDataLoader.swift (was 43%).

mfazekas added 3 commits May 27, 2026 08:37
Covers RiveFonts API (loadFont by name/URL, systemFallback, setFallbackFonts, clearFallbackFonts, error path) and referencedAssets loading (font/image assets with explicit types, multiple assets, undefined assets).
@mfazekas mfazekas merged commit e71bb3e into feat/rive-ios-experimental May 29, 2026
11 checks passed
@mfazekas mfazekas deleted the test/font-asset-coverage branch May 29, 2026 09:27
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.

1 participant