LCOV - code coverage report
Current view: top level - lib/src - query_parser.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 10 10 100.0 %
Date: 2021-04-04 17:06:32 Functions: 0 0 -

          Line data    Source code
       1             : class QueryParser {
       2          13 :   static Map<String, String> parseQueryParameters(String path) {
       3          13 :     final queryStringStart = path.indexOf('?');
       4          36 :     if (queryStringStart == -1 || path.length < queryStringStart) {
       5          13 :       return Map.unmodifiable(const <String, String>{});
       6             :     }
       7             : 
       8          15 :     final queryString = path.substring(path.indexOf('?') + 1);
       9             : 
      10          10 :     return Map.unmodifiable(Uri.splitQueryString(queryString));
      11             :   }
      12             : 
      13          10 :   static String stripQueryString(String path) {
      14          10 :     final indexOfQuery = path.indexOf('?');
      15             : 
      16          20 :     if (indexOfQuery == -1) {
      17             :       return path;
      18             :     }
      19             : 
      20           3 :     return path.substring(0, indexOfQuery);
      21             :   }
      22             : }

Generated by: LCOV version 1.15