LCOV - code coverage report
Current view: top level - src/resource - web_detector_stub.dart (source / functions) Coverage Total Hit
Test: lcov.info Lines: 0.0 % 2 0
Test Date: 2025-11-15 13:23:01 Functions: - 0 0

            Line data    Source code
       1              : // Licensed under the Apache License, Version 2.0
       2              : // Copyright 2025, Michael Bushe, All rights reserved.
       3              : 
       4              : // This is a stub implementation for non-web platforms
       5              : // It doesn't import dart:js_interop
       6              : import 'resource.dart';
       7              : import 'resource_detector.dart';
       8              : 
       9              : /// Stub implementation of the WebResourceDetector for non-web platforms.
      10              : ///
      11              : /// This implementation is a placeholder that throws an error if used,
      12              : /// ensuring that the web-specific detector is only used in web environments.
      13              : ///
      14              : /// This is part of Dart's conditional import/export pattern for
      15              : /// platform-specific code.
      16              : class WebResourceDetector implements ResourceDetector {
      17            0 :   @override
      18              :   Future<Resource> detect() async {
      19            0 :     throw UnsupportedError(
      20              :         'WebResourceDetector is only available on web platforms');
      21              :   }
      22              : }
        

Generated by: LCOV version 2.0-1