LCOV - code coverage report
Current view: top level - lib/src/resource - web_detector_stub.dart (source / functions) Coverage Total Hit
Test: lcov.info Lines: 0.0 % 2 0
Test Date: 2026-07-11 13:35:19 Functions: - 0 0

            Line data    Source code
       1              : // Copyright The OpenTelemetry Authors
       2              : // SPDX-License-Identifier: Apache-2.0
       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              :   }
      23              : }
        

Generated by: LCOV version 2.0-1