LCOV - code coverage report
Current view: top level - models/ios/metadata - movie.dart Coverage Total Hit
Test: lcov_cleaned.info Lines: 0.0 % 11 0
Test Date: 2025-06-20 10:50:47 Functions: - 0 0

            Line data    Source code
       1              : import 'package:flutter_chrome_cast/common/image.dart';
       2              : import 'package:flutter_chrome_cast/entities/media_metadata/movie_media_metadata.dart';
       3              : 
       4              : /// iOS-specific implementation of movie media metadata.
       5              : class GoogleCastMovieMediaMetadataIOS extends GoogleCastMovieMediaMetadata {
       6              :   /// Creates an iOS movie media metadata instance.
       7            0 :   GoogleCastMovieMediaMetadataIOS({
       8              :     super.images,
       9              :     super.releaseDate,
      10              :     super.studio,
      11              :     super.subtitle,
      12              :     super.title,
      13              :   });
      14              : 
      15              :   /// Creates a movie media metadata instance from a map.
      16            0 :   factory GoogleCastMovieMediaMetadataIOS.fromMap(Map<String, dynamic> map) {
      17            0 :     return GoogleCastMovieMediaMetadataIOS(
      18            0 :       title: map['title'],
      19            0 :       subtitle: map['subtitle'],
      20            0 :       studio: map['studio'],
      21            0 :       images: map['images'] != null
      22            0 :           ? List<GoogleCastImage>.from(map['images']?.map(
      23            0 :               (x) => GoogleCastImage.fromMap(Map<String, dynamic>.from(x))))
      24              :           : null,
      25            0 :       releaseDate: map['releaseDate'] != null
      26            0 :           ? DateTime.fromMicrosecondsSinceEpoch(map['releaseDate'] ?? 0)
      27              :           : null,
      28              :     );
      29              :   }
      30              : }
        

Generated by: LCOV version 2.3.1-1