LCOV - code coverage report
Current view: top level - common - http_client.dart (source / functions) Coverage Total Hit
Test: lcov.info Lines: 50.0 % 4 2
Test Date: 2025-01-30 01:10:00 Functions: - 0 0

            Line data    Source code
       1              : import 'package:http/http.dart' as http;
       2              : 
       3              : typedef HTTPClient = http.Client;
       4              : 
       5              : abstract class HTTPService {
       6              :   static HTTPClient? _client;
       7              : 
       8            6 :   static HTTPClient get client {
       9            6 :     _client ??= HTTPClient();
      10              :     return _client!;
      11              :   }
      12              : 
      13              :   //Add headers to the request
      14            0 :   static Future<http.Response> getWithHeaders(String url,
      15              :       {Map<String, String>? headers}) {
      16            0 :     return client.get(Uri.parse(url), headers: headers);
      17              :   }
      18              : }
        

Generated by: LCOV version 2.0-1