Commits

Boris FELD committed 78fbb02

Add 'on_set_current_module' event trigerring and event callback for reporters.

Comments (0)

Files changed (2)

         """
         if not modname and filepath is None:
             return
+        self.reporter.on_set_current_module(modname, filepath)
         self.current_name = modname
         self.current_file = filepath or modname
         self.stats['by_module'][modname] = {}

reporters/__init__.py

         """display the layout"""
         raise NotImplementedError()
 
+    # Event callbacks
+
+    def on_set_current_module(self, module, filepath):
+        """starting analyzis of a module"""
+        pass
+