Coverage Report - com.google.code.jetm.reporting.ext.NoOpEtmPoint
 
Classes in this File Line Coverage Branch Coverage Complexity
NoOpEtmPoint
46%
6/13
N/A
1
 
 1  
 package com.google.code.jetm.reporting.ext;
 2  
 
 3  
 import etm.core.monitor.EtmPoint;
 4  
 
 5  
 /**
 6  
  * An implementation of {@link EtmPoint} that does nothing.
 7  
  * 
 8  
  * @author JH016266
 9  
  * 
 10  
  */
 11  
 public class NoOpEtmPoint implements EtmPoint {
 12  
     private String name;
 13  
 
 14  
     /**
 15  
      * Create a no-op ETM point.
 16  
      * 
 17  
      * @param name
 18  
      *            The name of the point.
 19  
      */
 20  2
     public NoOpEtmPoint(String name) {
 21  2
         this.name = name;
 22  2
     }
 23  
 
 24  
     /**
 25  
      * {@inheritDoc}
 26  
      */
 27  
     public void alterName(final String newName) {
 28  1
         this.name = newName;
 29  1
     }
 30  
 
 31  
     /**
 32  
      * {@inheritDoc}
 33  
      */
 34  
     public void collect() {
 35  0
     }
 36  
 
 37  
     /**
 38  
      * {@inheritDoc}
 39  
      */
 40  
     public long getEndTime() {
 41  0
         return 0;
 42  
     }
 43  
 
 44  
     /**
 45  
      * {@inheritDoc}
 46  
      */
 47  
     public String getName() {
 48  2
         return name;
 49  
     }
 50  
 
 51  
     /**
 52  
      * {@inheritDoc}
 53  
      */
 54  
     public EtmPoint getParent() {
 55  0
         return null;
 56  
     }
 57  
 
 58  
     /**
 59  
      * {@inheritDoc}
 60  
      */
 61  
     public long getStartTime() {
 62  0
         return 0;
 63  
     }
 64  
 
 65  
     /**
 66  
      * {@inheritDoc}
 67  
      */
 68  
     public long getStartTimeMillis() {
 69  0
         return 0;
 70  
     }
 71  
 
 72  
     /**
 73  
      * {@inheritDoc}
 74  
      */
 75  
     public long getTicks() {
 76  0
         return 0;
 77  
     }
 78  
 
 79  
     /**
 80  
      * {@inheritDoc}
 81  
      */
 82  
     public double getTransactionTime() {
 83  0
         return 0;
 84  
     }
 85  
 }