Exemplo n.º 1
0
 def __init__(self, **attributes):
     """Class constructor that returns a new Usage object.  The constructor
    accepts the parameters supported by inca.Reporter.
 """
     Reporter.__init__(self, **attributes)
     self.entries = []
     self.addDependency('inca.UsageReporter')
Exemplo n.º 2
0
  def __init__(self, **attributes):
    """Class constructor that returns a new VersionReporter object.  The
       constructor supports the following parameters in addition to those
       supported by Reporter::

         package_name
           the name of the package for which a version is being determined;
           default ''.

         package_version
           the version of the package.
    """
    package_name = ''
    if attributes.has_key('package_name'):
      package_name = attributes['package_name']
      del attributes['package_name']
    package_version = None
    if attributes.has_key('package_version'):
      package_version = attributes['package_version']
      del attributes['package_version']
    Reporter.__init__(self, **attributes)
    self.package_name = package_name
    self.package_version = package_version
    self.subpackage_versions = {}
    self.addDependency('inca.VersionReporter')
Exemplo n.º 3
0
   def __init__(self, **attributes):
       """Class constructor that returns a new SimpleUnitReporter object.  The
      constructor supports the following parameter in addition to those
      supported by Reporter::
 
        unit_name
          the name of the unit being tested; default ''.
   """
       unit_name = ''
       if attributes.has_key('unit_name'):
           unit_name = attributes['unit_name']
           del attributes['unit_name']
       Reporter.__init__(self, **attributes)
       self.unit_name = unit_name
       self.addDependency('inca.SimpleUnitReporter')
Exemplo n.º 4
0
   def __init__(self, **attrs):
       """Class constructor that returns a new PerformanceReporter object. The
      constructor supports the following parameter in addition to those
      supported by Reporter::
 
        measurement_name
          the name of the performance metric measured by the reporter;
          default ''.
   """
       name = ''
       if attrs.has_key('measurement_name'):
           name = attrs['measurement_name']
           del attrs['measurement_name']
       Reporter.__init__(self, **attrs)
       self.measurement_name = name
       self.benchmark = {}
       self.addDependency('inca.PerformanceReporter')