| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| A |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Cobertura - http://cobertura.sourceforge.net/ | |
| 3 | * | |
| 4 | * Copyright (C) 2006 John Lewis | |
| 5 | * | |
| 6 | * Note: This file is dual licensed under the GPL and the Apache | |
| 7 | * Source License (so that it can be used from both the main | |
| 8 | * Cobertura classes and the ant tasks). | |
| 9 | * | |
| 10 | * Cobertura is free software; you can redistribute it and/or modify | |
| 11 | * it under the terms of the GNU General Public License as published | |
| 12 | * by the Free Software Foundation; either version 2 of the License, | |
| 13 | * or (at your option) any later version. | |
| 14 | * | |
| 15 | * Cobertura is distributed in the hope that it will be useful, but | |
| 16 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 18 | * General Public License for more details. | |
| 19 | * | |
| 20 | * You should have received a copy of the GNU General Public License | |
| 21 | * along with Cobertura; if not, write to the Free Software | |
| 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 | |
| 23 | * USA | |
| 24 | */ | |
| 25 | ||
| 26 | package test.second; | |
| 27 | ||
| 28 | /** | |
| 29 | * Simple class used in functional testing. | |
| 30 | * | |
| 31 | * @author John Lewis | |
| 32 | */ | |
| 33 | 1 | public class A |
| 34 | { | |
| 35 | ||
| 36 | public void call() | |
| 37 | { | |
| 38 | 1 | someMethod(); |
| 39 | 1 | } |
| 40 | ||
| 41 | public void dontCall() | |
| 42 | { | |
| 43 | 0 | someMethod(); |
| 44 | 0 | } |
| 45 | ||
| 46 | public static void someMethod() | |
| 47 | { | |
| 48 | 2 | String a = null; |
| 49 | 2 | String b = null; |
| 50 | ||
| 51 | 2 | a = b; |
| 52 | 2 | b = a; |
| 53 | 2 | } |
| 54 | ||
| 55 | } |