Coverage for /Syzygy/crashdata/json.h

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
0.0%003.C++source

Line-by-line coverage:

   1    :  // Copyright 2015 Google Inc. All Rights Reserved.
   2    :  //
   3    :  // Licensed under the Apache License, Version 2.0 (the "License");
   4    :  // you may not use this file except in compliance with the License.
   5    :  // You may obtain a copy of the License at
   6    :  //
   7    :  //     http://www.apache.org/licenses/LICENSE-2.0
   8    :  //
   9    :  // Unless required by applicable law or agreed to in writing, software
  10    :  // distributed under the License is distributed on an "AS IS" BASIS,
  11    :  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12    :  // See the License for the specific language governing permissions and
  13    :  // limitations under the License.
  14    :  //
  15    :  // Simple conversion of crash metadata to/from JSON. Useful for quickly
  16    :  // dumping contents of crashdata buffers, and for unittests.
  17    :  
  18    :  #ifndef SYZYGY_CRASHDATA_JSON_H_
  19    :  #define SYZYGY_CRASHDATA_JSON_H_
  20    :  
  21    :  #include "syzygy/crashdata/crashdata.h"
  22    :  
  23  m :  namespace crashdata {
  24    :  
  25    :  // Converts the provided crashdata protobuf to an equivalent JSON
  26    :  // representation.
  27    :  // @param pretty_print If true the resulting JSON will be pretty-printed.
  28    :  // @param value A value object containing crash metadata.
  29    :  // @param output The destination buffer.
  30    :  // @returns true on success, false otherwise.
  31  m :  bool ToJson(bool pretty_print, const Value* value, std::string* output);
  32    :  
  33  m :  }  // namespace crashdata
  34    :  
  35    :  #endif  // SYZYGY_CRASHDATA_JSON_H_

Coverage information generated Thu Mar 26 16:15:41 2015.