LCOV - code coverage report
Current view: top level - http_parser-3.1.1/lib/src - case_insensitive_map.dart (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 0 2 0.0 %
Date: 2017-10-10 20:17:03 Functions: 0 0 -

          Line data    Source code
       1             : // Copyright (c) 2015, the Dart project authors.  Please see the AUTHORS file
       2             : // for details. All rights reserved. Use of this source code is governed by a
       3             : // BSD-style license that can be found in the LICENSE file.
       4             : 
       5             : import 'package:collection/collection.dart';
       6             : 
       7             : /// A map from case-insensitive strings to values.
       8             : ///
       9             : /// Much of HTTP is case-insensitive, so this is useful to have pre-defined.
      10             : class CaseInsensitiveMap<V> extends CanonicalizedMap<String, String, V> {
      11             :   CaseInsensitiveMap()
      12           0 :       : super((key) => key.toLowerCase(), isValidKey: (key) => key != null);
      13             : 
      14             :   CaseInsensitiveMap.from(Map<String, V> other)
      15           0 :       : super.from(other, (key) => key.toLowerCase(),
      16             :             isValidKey: (key) => key != null);
      17             : }

Generated by: LCOV version 1.13