Coverage for /Syzygy/pdb/mutators/named_mutator_unittest.cc

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
57.1%470.C++test

Line-by-line coverage:

   1    :  // Copyright 2012 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    :  #include "syzygy/pdb/mutators/named_mutator.h"
  16    :  
  17    :  #include "gtest/gtest.h"
  18    :  
  19    :  namespace pdb {
  20    :  namespace mutators {
  21    :  
  22    :  namespace {
  23    :  
  24    :  class MockNamedPdbMutator
  25    :      : public NamedPdbMutatorImpl<MockNamedPdbMutator> {
  26    :   public:
  27  i :    bool MutatePdb(PdbFile* /*pdb_file*/) {
  28  i :      return true;
  29  i :    }
  30    :  
  31    :    static const char kMutatorName[];
  32    :  };
  33    :  
  34    :  const char MockNamedPdbMutator::kMutatorName[] = "MockNamedPdbMutator";
  35    :  
  36    :  }  // namespace
  37    :  
  38  E :  TEST(NamedPdbMutatorTest, NameWorks) {
  39  E :    MockNamedPdbMutator mutator;
  40  E :    EXPECT_EQ(std::string("MockNamedPdbMutator"), mutator.name());
  41  E :  }
  42    :  
  43    :  }  // namespace mutators
  44    :  }  // namespace pdb

Coverage information generated Thu Jan 14 17:40:38 2016.