Coverage for /Syzygy/refinery/types/test_typenames.cc

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
0.0%0024.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    :  #include "syzygy/refinery/types/test_typenames.h"
  16    :  
  17    :  #include "syzygy/refinery/types/alias.h"
  18    :  
  19  m :  namespace testing {
  20    :  
  21  m :  struct TestUDT {
  22  m :    TestUDT() : integer(42), reference(integer) {}
  23    :  
  24  m :    int integer;
  25    :  
  26  m :    const int& reference;
  27  m :    const volatile TestUDT* pointer;
  28    :  
  29  m :    char array[5];
  30  m :    volatile char constant_array[5];
  31  m :  };
  32    :  
  33  m :  enum TestEnum { ONE, TWO };
  34    :  
  35  m :  void FunctionWithNoParams() {}
  36  m :  struct TestFunctions {
  37  m :    const char MethodWithParams(const int one, char two) { return 'a'; }
  38  m :  };
  39    :  
  40  m :  void AliasTypes() {
  41    :    // Make sure the types are used in the file.
  42    :  
  43    :    // Pull in a UDT, a basic type, a pointer, a reference and arrays.
  44  m :    TestUDT simple = {};
  45  m :    Alias(&simple);
  46    :  
  47    :    // Pull in an enum.
  48  m :    TestEnum some_enum = ONE;
  49  m :    Alias(&some_enum);
  50    :  
  51    :    // Pull in functions.
  52  m :    Alias(FunctionWithNoParams);
  53  m :    TestFunctions functions;
  54  m :    Alias(&functions);
  55  m :  }
  56    :  
  57  m :  }  // namespace testing

Coverage information generated Fri Jul 29 11:00:21 2016.